Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git pull: permission denied

I created a repository in my desktop and push to github, then clone that repository to my laptop to make development, later committed the changes and push to github. now back to my desktop, i tried 'git pull' to get all the changed i made, it showed the error message: Permission denied (publickey) fatal: The remote end hung up unexpectedly.

how could this happen? i push the repository to github originally from my desktop it know the remote, now it complained permission denied?

like image 780
ohana Avatar asked Jul 14 '10 18:07

ohana


People also ask

Why do I get permission denied in git bash?

If you get the error "Permission denied", it is also possible that git doesn't have permission to create the project folder locally. Check permissions for the directory where you're attempting to check out the project, and make sure you have write access.

How do I give permission to clone a git repository?

Open Project settings>Repositories. To set the permissions for all Git repositories, choose Security. For example, here we choose (1) Project settings, (2) Repositories, and then (3) Security.

How do I fix permission denied Publickey fatal could not read from remote repository please make sure you have the correct access rights and the repository exists?

The “Permission denied (publickey). fatal: Could not read from remote repository” error is caused by an issue with the way in which you authenticate with a Git repository. To solve this error, make sure your key is being used on your Git account. If it is not, add your key to Git.


1 Answers

Your best bet is to go to your github account and make sure both your desktop AND your laptop's public keys are there and available. This page may also help you out: http://help.github.com/troubleshooting-ssh/

like image 115
brycemcd Avatar answered Sep 22 '22 21:09

brycemcd