我目前在公共 WIFI 站点上,但无法使用 SSH(他们可能阻止了该端口)。但是,我需要该连接来执行git push
.
➜ ssh -T [email protected] /cdn-cgi/l/email-protection
ssh: connect to host github.com port 22: Connection refused
是否可以通过端口 80 设置 SSH 隧道来绕过此限制并告诉github push
使用该连接?怎么做?我在 OSX (lion) 上。这应该是一个普遍的问题吧?
尝试这个:
$ vim ~/.ssh/config
Add
Host github.com
Hostname ssh.github.com
Port 443
Source: https://help.github.com/articles/using-ssh-over-the-https-port https://help.github.com/articles/using-ssh-over-the-https-port
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)