Create a gist now

Instantly share code, notes, and snippets.

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