Windows上公共git repo的权限被拒绝[重复]

Posted

技术标签:

【中文标题】Windows上公共git repo的权限被拒绝[重复]【英文标题】:Permission denied for public git repo on windows [duplicate] 【发布时间】:2018-09-19 17:03:27 【问题描述】:

关于这个错误有很多问题,但我什至在公共 git 存储库中得到它。我对如何追踪问题有点迷茫。

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.

【问题讨论】:

私人或公共回购无关紧要。如果要使用 ssh,则需要配置 ssh 密钥。 ***.com/a/2643584/9083959 【参考方案1】:

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

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

否则,您可以配置您的 ssh 密钥跟随here。

【讨论】:

以上是关于Windows上公共git repo的权限被拒绝[重复]的主要内容,如果未能解决你的问题,请参考以下文章