Report this

What is the reason for this report?

Putty error: No supported authentication methods available.

Posted on December 3, 2017

Hi, Im using freebsd, how can i delete EVERYTHING that has relation with ssh and putty (files sshd on freebsd), any ssh key that i may have somewhere, so i can start again trying with putty? the error is that Putty error: No supported authentication methods available



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

So i can login withouth using ssh or rsa keys just using putty

look in /root/.ssh on your droplet, generate a new keypair with ssh-keygen and be sure copy the key to your machine. (It’s id_rsa not the one ending with .pub).

If you replace the public key on the droplet it doesn’t matter what happened to the old private key, though you should add the new public key to your keys list in the DO control panel so you can use it when you build droplets in future.

Heya,

You can ensure that the SSH server supports the authentication method you are using (e.g., password, public key).

  • Disabled Password Authentication: Check that password authentication is enabled in /etc/ssh/sshd_config:
PasswordAuthentication yes
  • Incorrect SSH Key Permissions: Ensure that your private key file permissions are set to 600 if you are using public key authentication.

Always restart the SSH service after making changes to the configuration:

sudo service sshd restart

Before testing from another machine with PuTTY, try connecting locally using:

ssh username@localhost

If the error persists, check the SSH logs for any issues:

tail -f /var/log/auth.log

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.