【发布时间】:2020-01-25 15:20:36
【问题描述】:
我正在将 Windows 与 Git(Github 和本地 GitLab 实例)一起使用,但我无法从任一服务克隆。
以下是我在 Github 上公开回购时遇到的错误。
Cloning into 'xxx-java'...
The authenticity of host 'github.com (140.82.118.3)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpxwxE1IGOCspscxdCARLsdKw6E5SY8.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'github.com,140.82.118.3' (RSA) to the list of known hosts.
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 密钥有问题,但我完全按照 Gitlab documentation. 中的说明创建了它们
我错过了什么? (需要注意的是,通过 HTTPS 克隆可以正常工作)。
【问题讨论】:
-
按照这个过程 1.help.github.com/en/articles/… 2.help.github.com/en/articles/… 然后运行
ssh git@github.com。让我们知道输出