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

后端 未结 30 1857
野性不改
野性不改 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:30

    It worked for me.

    Your public key is saved to the id_rsa.pub;file and is the key you upload to your account. You can save this key to the clipboard by running this:

    pbcopy < ~/.ssh/id_rsa.pub

    • copy the SSH key to the clipboard, return to the web portal.
    • In the SSH Key field, paste your SSH key.
    • In the Name field, provide a name for the key.
    • save .

提交回复
热议问题