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?
推荐答案
试试这个:
Try this:
$ 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屋!
查看全文