- Digital Ocean console web access. [Important]
cp ~/.ssh/id_rsa.pub ~/key.txt
- Dropbox it.
- Generate a public share link in dropbox
- Get something like this:
https://www.dropbox.com/s/{{id}}/file?dl=0
- Replace the 0 to 1
- Get on Digital Ocean web console
- WGET it.
- Append it to
$HOME/.ssh/authorized_keys
cat $HOME/key.txt >> $HOME/.ssh/authorized_keys
- be happy
- ???
- PROFIT!!!1
Forked from jmsalcido/gist:c4530e4eeae9df0a39bad3e3dbe17db6
Last active
December 13, 2017 23:34
-
-
Save tonymtz/fce1b7847a4601a15e0cff88624398bb to your computer and use it in GitHub Desktop.
What to do when your ssh key is deleted from Digital Ocean and you have only SSH access with password.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment