Skip to content

Instantly share code, notes, and snippets.

@codeword
Last active November 25, 2015 18:17
Show Gist options
  • Save codeword/ab70433f1f1494bef2b4 to your computer and use it in GitHub Desktop.
Save codeword/ab70433f1f1494bef2b4 to your computer and use it in GitHub Desktop.
create a secure ssh key
ssh-keygen -t rsa -b 4096 -C "comment" -f id_rsa.custom-filename -N ''
@codeword
Copy link
Author

  • -b increases the key size to 4069 (default is 512 or 1024)
  • -t to pic 'rsa' over 'dsa' or others
  • -C allows you to name your key better than [user]@[computer name] which shows up at the end of the .pub file
  • -f specify filename
  • -N '' provide no passphrase for key (so you don't get prompted)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment