Skip to content

Instantly share code, notes, and snippets.

@ethan605
Created September 9, 2016 02:36
Show Gist options
  • Save ethan605/407fb35aa15a7c79f6347e72ad96e3a8 to your computer and use it in GitHub Desktop.
Save ethan605/407fb35aa15a7c79f6347e72ad96e3a8 to your computer and use it in GitHub Desktop.
SSH config for multiple private keys
Host myshortname realname.example.com
HostName realname.example.com
IdentityFile ~/.ssh/realname_rsa # private key for realname
User remoteusername
Host myother realname2.example.org
HostName realname2.example.org
IdentityFile ~/.ssh/realname2_rsa
User remoteusername
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment