SSH login failed (No supported authentication methods left to try)
Hi everyone,
I had some problems with my SSH auth via putty or WinSCP. But I fixed it now.
If you ever receive the following error…
No supported authentication methods left to try
then you should check your sshd_config (/etc/ssh/sshd_config)
search for PasswordAuthentication and edit this parameter to ‘yes‘ otherwise if there is ‘no‘ you will never be able to login with SSH via password.
If you want to have this parameter set up to ‘no‘ and you get this error message then you don’t have a key for your SSH client or your key for your SSH client is wrong!!! (That means you need a key from your server and with that key-file you can access your SSH session without typing in a password.)
Ok that was my problem so far.
ps: Never access SSH directly with root, login with a normal user and ‘su root’
Cheers
Aaren
Tags: auth, authentication methods, error message, key file, linux, PasswordAuthentication, putty, root login, rootserver, ssh client, ssh session, sshd, sshd_config, winscp
April 9th, 2009 at 4:59 am
Uncomment in sshd_config
IgnoreUserKnownHosts yes
June 12th, 2009 at 10:46 am
Aaren, you post was extremely useful. Thanks much…
September 15th, 2009 at 5:35 pm
Thanks from me, too.
I had the same problem.
December 29th, 2009 at 3:36 pm
Netter Artikel
February 20th, 2010 at 5:34 pm
Where do I adjust this setting? There is no “/etc/ssh/sshd_config” on my machine. I have WinSCP and cygwin on my computer.
March 9th, 2010 at 1:25 am
This is useless advice, since I don’t have access to change /etc/ssh/sshd_config (why would I??). I fixed it by updating to the newest putty version (0.60 from .52).
August 14th, 2010 at 5:44 am
Thankssssssssssssssssss, I had the same problem.