Putty error: No supported authentication methods available.

Posted December 3, 2017 18.3k views
Linux BasicsApacheJoomlaDNSFreeBSD

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

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.

Submit an Answer
2 answers

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.

  • hi, im not using any droplet here, im using virtual box

    • Same story - “droplet”, “virtual box”, “container” - they’re all just pretend computers ;)

      • I dont want to make a new key , i want to be able to accesss withouth autentificate myself with a key, just ip, username and password and im in, same story xD

        • Once you get your agent up and running it’s much more convenient to use keys - you just ssh to the host and you’re authed by key - no username / password each time.

          It’s also a whole bunch safer for things on the internet - I don’t think I’ve ever heard of someone brutiforcing an ssh key, but there are robots trying root/every password all day, every day.

          If you’re really into password auth it shouldn’t take much more than adding a second user with a password and adding them to sudoers. Some distros might have password authentication disabled in /etc/ssh.conf though.