If you have multiple git repositories, you should create an ~/.ssh/config file to reflect your "identities", here is mine:
# Default GitHub user
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/personalPrivateKey
# Work user account
Host supercode.com
HostName supercode.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/my_workplace_companyPrivateKey
No comments:
Post a Comment