Skip to content

Instantly share code, notes, and snippets.

@wildeyes
Created July 24, 2022 08:31
Show Gist options
  • Save wildeyes/f7c353e19a1bff8c32977c704e709610 to your computer and use it in GitHub Desktop.
Save wildeyes/f7c353e19a1bff8c32977c704e709610 to your computer and use it in GitHub Desktop.
Using multiple ssh identities (work github, personal github) - ~/.ssh/config
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