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

来源:互联网  时间:2016/6/14 2:09:00

关于网友提出的“ 从Github 使用ssh clone 项目时出现问题”问题疑问,本网通过在网上对“ 从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,并且连不出去。


解决方案1:

你在github设置里没加工钥

解决方案2:

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

解决方案3:

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

解决方案4:

应为你没有权限

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

如何生成公钥,自行搜索

解决方案5:

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

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

上一篇windows链接不上git的SVN
下一篇debian系统下,可以使用qq吗?怎么安装好?
明星图片
相关文章
《 从Github 使用ssh clone 项目时出现问题》由码蚁之家搜集整理于网络,
联系邮箱:mxgf168#qq.com(#改为@)