Report this

What is the reason for this report?

No supported authentication methods available (server sent: publickey )

Posted on May 20, 2022

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.



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.

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:

https://docs.digitalocean.com/products/droplets/how-to/add-ssh-keys/

Hello,

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:

https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04

Or you can watch this video tutorial here:

Hope that this helps!

Regards, Bobby

Heya,

You might see an error like this:

Disconnected: No supported authentication methods available (server sent: publickey)

Many of the most common issues regarding key-based authentication are caused by incorrect file permissions or ownership. Here are some steps you can take to troubleshoot this issue:

You can also check our tutorial on how to Troubleshoot ssh authentication issues here:

https://docs.digitalocean.com/support/how-to-troubleshoot-ssh-authentication-issues/

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.