Created
September 12, 2017 06:13
-
-
Save gbhasha/865f753dcfd54543ca25a4c012989812 to your computer and use it in GitHub Desktop.
Load ssh keys based on the GitHub host
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
# Put below code in ~/.ssh/config | |
# Default GitHub | |
Host github.com | |
ForwardAgent yes | |
HostName github.com | |
User git | |
IdentityFile ~/.ssh/id_rsa | |
# private GitHub | |
Host github.orgname.com | |
HostName github.orgname.com | |
User git | |
IdentityFile ~/.ssh/id_rsa_something |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment