使用Git时如何解决权限被拒绝(公钥)错误?

倖福魔咒の 提交于 2020-08-07 09:41:02

问题:

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
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!