- 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
Last active
June 5, 2020 23:31
-
-
Save jmsalcido/c4530e4eeae9df0a39bad3e3dbe17db6 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.
and use goo.gl to shorten the url.
Better to have your key private, doesnt matter it is the public one :P
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can actually use a gist too...