Skip to content

Instantly share code, notes, and snippets.

@datapolitan
Created January 8, 2018 02:50
Show Gist options
  • Save datapolitan/2c7d4fdb5144e12c384f0042df9797ab to your computer and use it in GitHub Desktop.
Save datapolitan/2c7d4fdb5144e12c384f0042df9797ab 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