Report this

What is the reason for this report?

SSH Key doesn't work on droplet after a rebuild

Posted on April 16, 2020

So I borked my config and decided to just reset everything and rebuilt my droplet. I have an SSH key setup on my DigitalOcean account. After rebuilding, the SSH key doesn’t work and I’m unable to log in using a password since it only wants a key.

I can log in with the password on the web console, but that thing is terrible. I can view authorized_key and see that it’s not actually using the one I have in my account, but I can’t copy and paste the correct key in because the console is so broken.



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.

The solution was to log in using the web access console and then do the steps here to enable a password https://www.digitalocean.com/community/questions/enable-both-password-and-key-file-to-ssh-logon-in then log in with a real ssh client so that you can actually copy and paste the key.

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.