Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save richarddunks/a2d482ff95adb698396621044d8bdce3 to your computer and use it in GitHub Desktop.
Save richarddunks/a2d482ff95adb698396621044d8bdce3 to your computer and use it in GitHub Desktop.
Example SSH config file for two Github hosts
#user1 account
Host github.com-user1
HostName github.com
User git
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
#user2 account
Host github.com-user2
HostName github.com
User git
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment