Skip to content

Instantly share code, notes, and snippets.

@deltorosalazar
Created June 11, 2024 03:14
Show Gist options
  • Save deltorosalazar/64011b740a475c0c55b5dc5a7ac13cc3 to your computer and use it in GitHub Desktop.
Save deltorosalazar/64011b740a475c0c55b5dc5a7ac13cc3 to your computer and use it in GitHub Desktop.
Have multiple SSH keys
# /Users/<user>/.ssh/config
Host github.com-<foo>
HostName github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/<filename-1>
Host github.com-<bar>
HostName github.com
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/<filename-2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment