Anybody seen this error and know what to do?
I\'m using the terminal, I\'m in the root, the GitHub repository exists and I don\'t know what to do now.
you can use Https url to login
i guess you are trying to login with ssh url when you say git push if it as asking only password consider you are connecting through ssh.better you use http url.
GitHub isn't able to authenticate you. So, either you aren't setup with an SSH key, because you haven't set one up on your machine, or your key isn't associated with your GitHub account.
You can also use the HTTPS URL instead of the SSH/git URL to avoid having to deal with SSH keys. This is GitHub's recommended method.
Further, GitHub has a help page specifically for that error message, and explains in more detail everything you could check.
I was getting same error during 'git push'. In client side I had two origin and master. I removed one, then it worked fine.
I know about this problem. After add ssh key, add you ssh key to ssh agent too (from official docs)
ssh-agent -s
ssh-add ~/.ssh/id_rsa
After it all work fine, git can view proper key, before couldn't.
Issue solved if you change the ssh access to https access to the remote repository:
git remote set-url origin https_link_to_repository
git push -u origin master
Make sure ssh-add -l
shows a fingerprint of an SSH key that's present in the list of SSH keys in your Github account.
If the output is empty, but you know you have a private SSH key that works with your github account, run ssh-add
on this key (found in ~/.ssh
. It's named id_rsa
by default, so you'll likely run ssh-add id_rsa
).
Else, follow these instructions to generate an SSH key pair .