André Figueira

Systems engineer - I write apps, I make websites, opinions are my own...

Can't add new SSH key via DigitalOcean console

Recently had to gain access to a client server to make a couple of changes, but did not have access via SSH anymore but did have access to the clients DigitalOcean account, in trying to paste my ssh key into the authorized_keys file, it was pasting a bunch of gibberish, so I did the following to get it working;

1- Created a private gist with my public ssh key 2- Logged in via DigitalOcean using the console and ran the following;

curl gisturlhere >> ~/.ssh/authorized_keys

And done, simple solution and I'm able to get back in despite the shittyness of the DigitalOcean web console.