Github (SSH) 通过公共 WIFI,端口 22 被阻止 [英] Github (SSH) via public WIFI, port 22 blocked
本文介绍了Github (SSH) 通过公共 WIFI,端口 22 被阻止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我目前在一个公共 WIFI 点上,我无法使用 SSH(他们可能阻止了那个端口).但是,我需要该连接来执行 git push
.
I'm currently on a public WIFI spot and I'm unable to use SSH (they probably blocked that port). However, I need that connection to do a git push
.
➜ ssh -T git@github.com
ssh: connect to host github.com port 22: Connection refused
是否可以通过端口 80 设置 SSH 隧道并告诉 github push
使用该连接来绕过此限制?怎么做?我在 OSX(狮子)上.这应该是个普遍问题吧?
Is it possible to bypass this restriction by setting up a SSH tunnel via port 80 and tell github push
to use that connection? How to do that? I'm on OSX (lion). This must be a common problem?
推荐答案
试试这个:
$ vim ~/.ssh/config
添加
Host github.com
Hostname ssh.github.com
Port 443
来源:https://help.github.com/articles/using-ssh-over-the-https-port
这篇关于Github (SSH) 通过公共 WIFI,端口 22 被阻止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文