Last active
November 8, 2024 10:07
-
-
Save kevinhooke/a30de2d5ea9d9986cdf306775063323e to your computer and use it in GitHub Desktop.
Configuring ~/.ssh/config file for accessing multiple git repos with different keys
This file contains hidden or 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
| #Edit ~/.ssh/config and for each repo add the following block: | |
| host hostname-of-repo | |
| user your-id-for-this-repo | |
| identityfile ~/.ssh/filename-of-key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment