Skip to content

Instantly share code, notes, and snippets.

@brandovidal
Last active October 14, 2023 16:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brandovidal/1bb123ba7d46d87f903c2e16ba2f24b1 to your computer and use it in GitHub Desktop.
Save brandovidal/1bb123ba7d46d87f903c2e16ba2f24b1 to your computer and use it in GitHub Desktop.
Configuration for uses multiples SSH Keys
# FileName: ~/.ssh/config
# Config by Github
# Personal - user@gmail.com
Host github.com
User git
HostName github.com
AddKeysToAgent yes
IdentityFile ~/.ssh/personal
# Work - user@work.com
Host work.github.com
User git
HostName github.com
AddKeysToAgent yes
IdentityFile ~/.ssh/work
Host *
IdentitiesOnly yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment