Jun
09
2010
“Permission denied (publickey)” when accessing Github
Posted by Chirag Patel in Errors at 12:15 AMI received the following message when accessing my Git repo:
git clone git@github.com:patelc75/gitrepo.git
Initialized empty Git repository in /home/webuser/.ssh/gitrepo/.git/
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Then I did the following to debug
Use SSH With Verbose Output To Debug:
ssh -v git@github.com
And found out the permissions of the ssh key was the problem. The following fixed the problem.
Modify Permissions On Public SSH Key:
sudo chmod 644 id_rsa.pub
|
|
|
|




Entries (RSS)
Thanks!
After hours trying solve this issue, I found your article and it’s solved.
[Reply]
Been tnnikhig about doing it for a number of my project that I have currently on SVN, and on my own server. Any reason you picked git over say something like mercurial?
[Reply]