Created
April 1, 2012 21:13
-
-
Save acleon/2278869 to your computer and use it in GitHub Desktop.
Different Identity Files for Different Hosts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .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