Skip to content

Instantly share code, notes, and snippets.

@candidosales
Created July 4, 2019 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save candidosales/c717fb0afba38df24d18ee47117c267a to your computer and use it in GitHub Desktop.
Save candidosales/c717fb0afba38df24d18ee47117c267a to your computer and use it in GitHub Desktop.
Solve SHH Droplet Digital Ocean

I had a machine crash, and needed to setup another one with SSH access. I got the console login ok, but no way to paste my public key there. Just spent a whole day trying to find a way to do this.

My solution, finally was to put the public key on a public dropbox folder, then in the console, use:

curl 'https://dl.dropbox.....' > temp1
cat temp1 >> .ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment