【问题标题】:Permission denied for public git repo on windows [duplicate]Windows上公共git repo的权限被拒绝[重复]
【发布时间】: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.

【问题讨论】:

标签: windows git github ssh


【解决方案1】:

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

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-08-12
    • 2017-10-30
    • 2014-03-18
    • 1970-01-01
    • 2012-04-05
    • 1970-01-01
    • 1970-01-01
    • 2020-01-04
    相关资源
    最近更新 更多