首页 > 从Github 使用ssh clone 项目时出现问题

从Github 使用ssh clone 项目时出现问题

Github 使用 ssh clone 项目 返回下面错误

ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

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

请问怎么解决?

公匙我已经添加了到Github中了

用HTTPS URL clone 是可以的。就是SSH 不行

我也用coding的服务,同一个公匙用在coding上时没问题的。而且https 方法也没问题。

最后感觉是被墙了,或者是dns污染的问题。因为ping github.com 之后IP是1.1.1.1,并且连不出去。


应为你没有权限

要把你电脑的公钥添加到GitHub你的账户中

如何生成公钥,自行搜索


生成公钥和私钥的方法:https://help.github.com/articles/generating-an-ssh-key/


公钥添加了,能否提供你的私钥是怎么配置的?


找到最后的答案了,是因为墙的问题。

在外网的环境下,一切使用正常。


你在github设置里没加工钥

【热门文章】
【热门文章】