Closed nguyen-info closed 4 years ago
This was due to my failed attempt at creating an SSH key, but it is now fixed. For future reference, here's how to set up an SSH key to avoid having to type in your password for each push:
ssh-keygen
in terminalgithub
~/.ssh/config
to configure ssh key with ssh-keygengithub.com
and last github
instance to your preference. Something that identifies the remote server that you are connecting to:
Host github.com
Preferredauthentications publickey
IdentityFile ~/.ssh/github
Note: The second and third lines are indented with two spaces.
git remote set-url origin git@github.com:repoName.git
(In this case it was git@github.com:BITS-Research/OSHI.git
)nano ~/.ssh/github.pub
in terminal
When I
git push
from my local repo to the remote repo, even after I carefully log in with my credentials, I'm unable to commit then push from my local repo to the remote repo. I get this error:Did permission settings change?