Skip to content

Instantly share code, notes, and snippets.

@sandipransing
Last active September 24, 2015 23:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandipransing/cc14d6039f1ff35b4be3 to your computer and use it in GitHub Desktop.
Save sandipransing/cc14d6039f1ff35b4be3 to your computer and use it in GitHub Desktop.
Multiple github accounts and ssh keys
# Default GitHub user (sandip)
Host github.com
HostName github.com
User git
IdentityFile /home/sandip/.ssh/id_rsa
# github user (client)
Host github-client
HostName github.com
User git
IdentityFile /home/sandip/.ssh/id_rsa_client
# github user (friend)
Host github-swapnil
HostName github.com
User git
IdentityFile /home/sandip/.ssh/id_dsa_swapnil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment