Skip to content

Instantly share code, notes, and snippets.

@breenie
Created July 17, 2015 08:50
Show Gist options
  • Select an option

  • Save breenie/c5b558994697914e9b5a to your computer and use it in GitHub Desktop.

Select an option

Save breenie/c5b558994697914e9b5a to your computer and use it in GitHub Desktop.
SSH crib sheet

SSH crib sheet

Generate fingerprint

ssh-keygen -lf ~/.ssh/id_rsa

Keyscan to known_hosts

ssh-keyscan -t rsa,dsa github.com 2>&1 >> ~/.ssh/known_hosts

Generate public key from private key

ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment