- 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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# ___ __ __ ____ _ ____ _ | |
# / _ \| \/ |/ ___( )___ / ___| ___| |_ _ _ _ __ | |
# | | | | |\/| | | |// __| \___ \ / _ \ __| | | | '_ \ | |
# | |_| | | | | |___ \__ \ ___) | __/ |_| |_| | |_) | | |
# \___/|_| |_|\____| |___/ |____/ \___|\__|\__,_| .__/ | |
# |_| | |
echo "Creating an SSH key for you..." |