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?
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.
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.
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.
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With