Skip to content

Instantly share code, notes, and snippets.

@snehesht
Created April 4, 2019 17:16
Show Gist options
  • Save snehesht/96880cf764fb9d4796540cae0705ebd6 to your computer and use it in GitHub Desktop.
Save snehesht/96880cf764fb9d4796540cae0705ebd6 to your computer and use it in GitHub Desktop.
Build's repos with private git reops
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