You can set up multiple ssh keys for any site having multiple user accounts
Below is the example I used to follow in my development for GitHub.com
Config file example
#Personal account
Host github.com-<personal-account-name>
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_personal
IdentitiesOnly yes
#Organization account
Host github.com-<organization-name>
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_work
IdentitiesOnly yes
At the time of adding a new origin
For Personal account
git remote add origin git@github.com-<personal-account-name>:<personal-account-name>/<repo-name>.git
For Organisation account
git remote add origin git@github.com-<organization-name>:<organization-name>/<repo-name>.git
Hope it helps.
1
Cross-site duplicate: Best way to use multiple ssh private keys on one client
– slhck – 2011-05-23T21:07:05.823Also, the known host keys are definitely not the same, just look at the ends of the lines for each host. – slhck – 2011-05-23T21:07:36.883