Take the 2-minute tour ×

I cloned a repository with the clone command successfully. BUT, I tried to push after commit and I get this error.

$ git push git@github.com:taraloca/QuitIt.git Permission denied (publickey). fatal: The remote end hung up unexpectedly

Any ideas?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

If it's a public repo, anyone can clone, however a key is required to push. This key provides authentication, and tells Github that you are allowed to push to that repo.

Instructions located here http://help.github.com/msysgit-key-setup/

share|improve this answer
Yep, the error message Permission denied (publickey) is indicating that you don't have your authentication key configured correctly (or not at all). –  Dan Moulding Sep 16 '10 at 1:45
add comment

Your Answer


