Git: How to solve Permission denied (publickey) error when using Git?

I’m on Mac Snow Leopard and I just installed git.

I just tried

git clone [email protected]:cakebook.git

but that gives me this error:

Initialized empty Git repository in `/Users/username/Documents/cakebook/.git/`
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

What am I missing?
I’ve also tried doing ssh-keygen with no passphase but still same error.

58 s
58

Leave a Comment