New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libssh2_userauth_password[_ex] always return failed with LIBSSH2_ERROR_AUTHENTICATION_FAILED #699
Comments
Could you attach a debug trace or some other information that may be of use to help you figure out this issue (server type, port, etc). |
@willco007 |
How about a debug log? This passes pw auth unit tests, I personally have this in production with additional pw auth unit tests as do a lot of other folks without issue. I'd venture to guess you've got something slightly misconfigured. |
@willco007 |
Are you sure it's authenticating via username + password or by username +
encrypted private key? Running 'ssh -v hostname' with OpenSSH ssh will tell
you exactly what method it's using.
|
@willco007 r4s ~ # ssh -v router.lo |
Looks like I can use 'keyboard-interactive' but not password, this is the problem, and it's not about libssh2_userauth_password in libssh2. |
@cissusnar Glad you got it sorted out. 😄 |
Describe the bug
libssh2_userauth_password[_ex] always return failed with LIBSSH2_ERROR_AUTHENTICATION_FAILED
To Reproduce
download latest libssh2.tar.gz
modify user and password in example/ssh2_exec.c .
mkdir build
cd build
cmake ..
make -j8
./example/example-ssh2_exec OR ./example/example-ssh2_exec ip user pwd ls
"Authentication by password failed." (LIBSSH2_ERROR_AUTHENTICATION_FAILED)
Expected behavior
auth successful
Version (please complete the following information):
Additional context
I test all of my server and return LIBSSH2_ERROR_AUTHENTICATION_FAILED all of them.
The text was updated successfully, but these errors were encountered: