Created
April 4, 2019 17:16
-
-
Save snehesht/96880cf764fb9d4796540cae0705ebd6 to your computer and use it in GitHub Desktop.
Build's repos with private git reops
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
Step 1) Replace url with [email protected] | |
git config --global url."[email protected]:".insteadOf "https://github.com/" | |
Step 2) Add github ssh-key | |
ssh-keygen -t ed25519 -f ~/.ssh/github | |
chmod 0600 ~/.ssh/github | |
Step 3) Add ssh key on VM and configure it on .ssh/config | |
Host github.com | |
User git | |
Hostname github.com | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/github | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment