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: , , , , , , , , , , , , ,

7 Responses to “SSH login failed (No supported authentication methods left to try)”

  1. Paul Says:

    Uncomment in sshd_config
    IgnoreUserKnownHosts yes

  2. Michkah Says:

    Aaren, you post was extremely useful. Thanks much…

  3. Schweinegrippe Says:

    Thanks from me, too.
    I had the same problem.

  4. MarkThol Says:

    Netter Artikel

  5. James Fishwick Says:

    Where do I adjust this setting? There is no “/etc/ssh/sshd_config” on my machine. I have WinSCP and cygwin on my computer.

  6. bob smith Says:

    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).

  7. Raul Says:

    Thankssssssssssssssssss, I had the same problem.

Leave a Reply