DO+ PuTTY SHH key doesn't work

So i followed documentation on how to put SHH via Putty, letter by letter. I coped “Public key for pasting into OpenSHH authorized_key file” from Putty Key Generator to paste it in my DO account. Double checked if i haven’t missed any part.

I set putty like it was told in documentation for Ubuntu (ip from DO, user: root, dir to my private key in SHH>Auth).

And after i hit open i get "No supported authentication methods available (server sent: publickey).

Remaking new keys doesn’t help.

I have choose DO because using PuTTY and update things looks really easy, but if there are errors from following guide its quite upsetting.

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

if you want to do this by windows cmd prompt please read the steps first before typing the cmds:

1.In windows cmd prompt: “ssh-keygen” (this will generate and id_rsa key for windows REMEMBER TO PRESS ENTER WHEN ASKES YOU PASSWORD IF YOU WANT TO SSH TO SERVER WITHOUT PASSWORD)

2.In windows cmd prompt: “scp [location of windows] [linux_user]@[linux_IP/linux_hostname]:~/.ssh/authorized_keys” (this will copy windows pub key to linux server, the location of windows is shown when you gave the cmd ssh-keygen)

Hello, @demeo1988

No supported authentication methods available (server sent: publickey), it basically says that the server said it supported public key authentication only and PuTTY was not able to provide it. I will recommend you double-check the settings in PuTYY. You can check these tutorials:

You can try copying the key via ssh instead of using PuTTY. You can also use the ssh-copy-id command in order to do so. An example will be:

  1. ssh-copy-id -i ~/.ssh/mykey user@host

Hope that this helps! Regards, Alex