ssh:连接到主机github.com端口22:连接超时 [英] ssh: connect to host github.com port 22: Connection timed out

查看:730
本文介绍了ssh:连接到主机github.com端口22:连接超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用代理服务器,并且正在推动git成功一段时间。

现在我无法突然将git推入git。

I已经设置了RSA密钥和代理,并且对它们进行了双重检查,结果没有结果,并且git向我抛出页面标题中显示的错误。 解决方案

原因可能是网络下的防火墙修改(在这种情况下,他们可能会故意阻塞一些端口)

要仔细检查是否这是原因... do

  ssh -T git@github.com 

这应该超时。
如果是这种情况,请使用http协议代替ssh这种方式

只需将配置文件中的url更改为http。

以下是方法: -

  git config --local -e 

更改

  url = git@github.com:username / repo.git 

  url = https://github.com/username/repo.git 


I am under a proxy and I am pushing in to git successfully for quite a while.
Now I am not able to push into git all of a sudden.
I have set the RSA key and the proxy and double checked them, with no avail and git is throwing me the error shown in the title of the page.

解决方案

The reason could be the firewall modification as you are under a network.(In which case they may deliberately block some ports)
To double check if this is the reason ... do

ssh -T git@github.com

this should timeout. If that's the case use http protocol instead of ssh this way
just change your url in the config file to http.
Here is how :-

git config --local -e

change entry of

 url = git@github.com:username/repo.git

to

url = https://github.com/username/repo.git

这篇关于ssh:连接到主机github.com端口22:连接超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆