使用Git时如何解决权限被拒绝(公钥)错误? - How to solve Permission denied (publickey) error when using Git?

问题:

I'm on Mac Snow Leopard and I just installed git . 我在Mac Snow Leopard上,而且刚刚安装了git git

I just tried 我刚试过 ssh

git clone git@thechaw.com:cakebook.git

but that gives me this error: 但这给了我这个错误: this

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. 我也尝试过使用ssh-keygen而不设置密码,可是仍然存在相同的错误。 spa


解决方案:

参考一: https://stackoom.com/question/B5h8/使用Git时如何解决权限被拒绝-公钥-错误
参考二: https://oldbug.net/q/B5h8/How-to-solve-Permission-denied-publickey-error-when-using-Git
相关文章
相关标签/搜索