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

后端 未结 30 2265
野性不改
野性不改 2020-11-22 08:07

I\'m on Mac Snow Leopard and I just installed git.

I just tried

git clone git@thechaw.com:cakebook.git

but that gives

30条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 08:34

    In my MAC I solved this with:

    cp ~/.ssh/github_rsa ~/.ssh/id_rsa
    

    For some reason my git stopped to find the private key in the github_rsa file. This happened in a specific repo. I mean that in other repositories git kept working normally.

    I think it's a bug.

    I could find this behavior running ssh -vT git@github.com

提交回复
热议问题