使用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
相關文章
相關標籤/搜索