Windows上公共git repo的权限被拒绝

时间:2018-04-10 07:10:48

标签: windows git github ssh

关于这个错误有很多问题,但我甚至可以将它用于公共git repo。关于如何追查这个问题,我有点迷失。

PS C:\dev> git clone git@github.com:golang/dep.git
Cloning into 'dep'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

1 个答案:

答案 0 :(得分:0)

这可能是因为您尚未按预期配置ssh密钥。

  • 如果您只需克隆存储库,则可以尝试使用 https 协议。

  • 否则,您可以按照here配置您的ssh密钥。

相关问题