Skip to content

Instantly share code, notes, and snippets.

@nathanieltubb
Last active October 9, 2018 19:39
Show Gist options
  • Save nathanieltubb/20f9f280dd7ecb1144878655b36f97e6 to your computer and use it in GitHub Desktop.
Save nathanieltubb/20f9f280dd7ecb1144878655b36f97e6 to your computer and use it in GitHub Desktop.
SSH Keygen Commands

SSH Keygen Commands

Create a new 4096 bit RSA key without a comment like user@machine-name.

ssh-keygen -t rsa -b 4096 -C ""

Want to compare a fingerprint to see if you have the right keys?

Default fingerprint format (probably SHA256).

ssh-keygen -lf ~/.ssh/id_rsa.pub
2048 SHA256:ta7qRw6OkTbAiN3ig0bVdRaBNO1fSUCSmJ905oVYLnw YOURCOMMENT (RSA)

MD5 fingerprint format.

ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub
2048 MD5:62:77:fc:60:92:ab:3b:03:83:51:53:25:fb:36:f6:80 YOURCOMMENT (RSA)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment