问题:
I'm on Mac Snow Leopard and I just installed git
. 我在Mac Snow Leopard上,并且刚刚安装了git
。
I just tried 我刚试过
git clone git@thechaw.com: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. 我也尝试过使用ssh-keygen
而不设置密码,但是仍然存在相同的错误。
解决方案:
参考一: https://stackoom.com/question/B5h8/使用Git时如何解决权限被拒绝-公钥-错误参考二: https://oldbug.net/q/B5h8/How-to-solve-Permission-denied-publickey-error-when-using-Git
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4277862