Skip to content

Instantly share code, notes, and snippets.

@zeroDivisible
Created September 16, 2013 16:12
Show Gist options
  • Save zeroDivisible/6582823 to your computer and use it in GitHub Desktop.
Save zeroDivisible/6582823 to your computer and use it in GitHub Desktop.
Generation of secure SSH Key
ssh-keygen -t rsa -C "email"
openssl pkcs8 -topk8 -v2 des3 -in ~/.ssh/id_digitalocean -out ~/.ssh/id_digitalocean
# to check if generated correctly
cat .ssh/id_digitalocean.pub
scp ~/.ssh/id_digitalocean.pub <user>@<yourhost>:.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment