Friday, 24 July 2020

git push: permission denied (public key)

1) generate public key
cd ~/.ssh
ssh-keygen
2) cat ~/.ssh/id_rsa.pub
3) Copy the key, including the "ssh-rsa" but excluding your computer name at the end
4) Go to https://github.com/settings/ssh
5) Add your SSH key

No comments:

Post a Comment