By Moehkak
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!
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:
authorized_keys file and the private key itself have the correct permissions and ownership.authorized_keys file contains the matching public key. Check that your public key is added to the Droplet.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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.