Last active
October 14, 2023 16:02
-
-
Save brandovidal/1bb123ba7d46d87f903c2e16ba2f24b1 to your computer and use it in GitHub Desktop.
Configuration for uses multiples SSH Keys
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
# 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