GitHub Error Message - Permission denied (publickey)

后端 未结 30 2832
长发绾君心
长发绾君心 2020-11-22 04:23

Anybody seen this error and know what to do?

I\'m using the terminal, I\'m in the root, the GitHub repository exists and I don\'t know what to do now.



        
30条回答
  •  面向向阳花
    2020-11-22 05:05

    I would like to add some of my findings:

    If you are using GitBash, then make sure the SSH key is stored in ~/.ssh/id_rsa.

    By Default GitBash searches for ~/.ssh/id_rsaas default path for SSH key.

    Even the file name id_rsa matters. If you save your SSH key in another filename or path, it will throw the Permission Denied(publickey)error.

提交回复
热议问题