-
Notifications
You must be signed in to change notification settings - Fork 536
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
Getting Authentication failure error even when I am passing username and password in config.json #334
Comments
Try enabling debug for the To enable debug for the ssh2 module with this project, run it like so:
The output should be something like this (successful login):
Or this (invalid credentials/login not permitted):
auth.log from the server:
Relevant section from /etc/ssh/sshd_config may look something like one of the following:
Some distros disable this by default (and for good reason). I don't recommend changing this in practice but for testing on non-production it's fine I suppose. Change to:
and restart sshd, it should now be successful... Otherwise, we'll look at your log outputs and see what the server or the ssh2 module is complaining about. You can also increase verbosity of the ssh2 server logs (I recommend this if the above doesn't fix it), in /etc/ssh/sshd_config by uncommenting/adding or replacing the LogLevel option to DEBUG3:
The auth log from the server will now be chock full of information that may or may not be helpful:
Basically, it's saying the username/password is incorrect... Which also is the same as if you set |
Below is the error:
The config is:
Please let me know how can it be fixed?
The text was updated successfully, but these errors were encountered: