Created
July 24, 2022 08:31
-
-
Save wildeyes/f7c353e19a1bff8c32977c704e709610 to your computer and use it in GitHub Desktop.
Using multiple ssh identities (work github, personal github) - ~/.ssh/config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Host github.com:COMPANY/* | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/id_work | |
Host github.com:PERSONAL/* | |
AddKeysToAgent yes | |
UseKeychain yes | |
IdentityFile ~/.ssh/id_personal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment