Looking at the openssh source code it seems like
(1) The error message for a wrong password, "Permission denied", is not localized
(2) It has not changed since 2001
See line 445 on https://github.com/SimonWilkinson/openssh/blame/master/sshconnect2.c (github mirror of the openssh cvs)
I have written a patch so the ssh error message is recorded and show to the user (in bug 1325388). Localization is missing, but it basically does what the bug reporter wants, so I am marking this bug as a duplicate.
Looking at the openssh source code it seems like /github. com/SimonWilkin son/openssh/ blame/master/ sshconnect2. c (github mirror of the openssh cvs)
(1) The error message for a wrong password, "Permission denied", is not localized
(2) It has not changed since 2001
See line 445 on https:/
Also in libssh, it seems like you also get just an error string that you have to parse yourself, see http:// api.libssh. org/master/ group__ libssh_ _error. html . So libssh probably won't make it a lot easier.
I have written a patch so the ssh error message is recorded and show to the user (in bug 1325388). Localization is missing, but it basically does what the bug reporter wants, so I am marking this bug as a duplicate.