Skip to content

Instantly share code, notes, and snippets.

@hangyan
Created February 26, 2015 08:01
Show Gist options
  • Save hangyan/ab6d4b6a31247f9ec995 to your computer and use it in GitHub Desktop.
Save hangyan/ab6d4b6a31247f9ec995 to your computer and use it in GitHub Desktop.
git multi user ssh config file settings
Host work.github.com
HostName github.com
User WORK_GITHUB_USERNAME
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_work_rsa
IdentitiesOnly yes
Host personal.github.com
HostName github.com
User PERSONAL_GITHUB_USERNAME
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_personal_rsa
IdentitiesOnly yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment