Skip to content

Instantly share code, notes, and snippets.

@tfentonz
Last active August 10, 2016 01:30
Show Gist options
  • Save tfentonz/07c8595f2d6caa3bc1a0dd575dbe9489 to your computer and use it in GitHub Desktop.
Save tfentonz/07c8595f2d6caa3bc1a0dd575dbe9489 to your computer and use it in GitHub Desktop.
SSH Commands

SSH Commands

ssh-add

Add private key identities to the authentication agent storing passphrase in your keychain.

ssh-add -K ~/.ssh/some-key

ssh-keygen

Create RSA 2048 bit key.

ssh-keygen -t rsa -b 2048 -C user@domain -f ~/.ssh/some-key

Generate an OpenSSH public key file from private OpenSSH format file.

ssh-keygen -y -f ~/.ssh/some-key >~/.ssh/some-key.pub

Show fingerprint of specified public key file.

ssh-keygen -E md5 -lf ~/.ssh/some-key.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment