Created
November 18, 2021 08:01
-
-
Save nothingrealhappen/a37354cf2035a018b540fa2f4002dde6 to your computer and use it in GitHub Desktop.
setup ssh key per project
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
Host github-my-repo | |
# The host that has the remote Git repository | |
Hostname github.com | |
# Username for remote SSH user (For GitHub, everyone uses the name `git`) | |
User git | |
# Path to your private SSH key | |
IdentityFile /root/.ssh/github-my-repo.id.rsa | |
change repo ssh config from | |
[email protected]:xxx/xxx.git | |
to | |
github-my-repo:xxx/xxx.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment