No supported authentication methods available (server sent: publickey )

I try to login my droplet server. I use putty , when I enter my credentials,it show No supported authentication methods available (server sent: publickey) what wrong with that. I also cannot enter droplet console because I cannot enter as root , So how can solve this.

Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
May 23, 2022


In addition to what has been already mentioned, you can follow the steps from this tutorial here on how to do your initial server setup here:

Or you can watch this video tutorial here:

Hope that this helps!

Regards, Bobby

Site Moderator
Site Moderator badge
May 21, 2022

Hi @moehkak,

You need to use a Public Key to enter your Droplet. The Droplet’s created in DigitalOcean by default do not have Password Authentication turned on.

You can follow this docs page to create and add your SSH keys to your Droplet:

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.