Skip to content

Instantly share code, notes, and snippets.

@acleon
Created April 1, 2012 21:13
Show Gist options
  • Save acleon/2278869 to your computer and use it in GitHub Desktop.
Save acleon/2278869 to your computer and use it in GitHub Desktop.
Different Identity Files for Different Hosts
# .ssh/config
Host shortname1 hostname1.example.com
Hostname hostname1.example.com
IdentityFile ~/.ssh/hostname1_rsa
Host shortname2 hostname2.example.com
Hostname hostname2.example.com
IdentityFile ~/.ssh/hostname2_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment