无法使用http代理隧道通过ssh连接到github repo

无法使用http代理隧道通过ssh连接到github repo,github,ssh,http-proxy,Github,Ssh,Http Proxy,我在大学里支持一个代理,像ftp和ssh这样的东西并不是现成的。我只是在我的笔记本电脑上设置了git,并配置了它的代理,我可以通过https方法推送和获取 但是,我希望能够通过ssh连接到我的github repo。我花了几个小时在线阅读解决方案,并尝试使用螺旋钻将ssh连接到我的github repo中,以隧道方式连接http代理 我的~/.ssh/config文件如下所示: Host github.com Hostname ssh.github.com Port 443 ProxyComma

我在大学里支持一个代理,像ftp和ssh这样的东西并不是现成的。我只是在我的笔记本电脑上设置了git,并配置了它的代理,我可以通过https方法推送和获取

但是,我希望能够通过ssh连接到我的github repo。我花了几个小时在线阅读解决方案,并尝试使用螺旋钻将ssh连接到我的github repo中,以隧道方式连接http代理

我的~/.ssh/config文件如下所示:

Host github.com
Hostname ssh.github.com
Port 443
ProxyCommand corkscrew proxy62.iitd.ernet.in 80 %h %p ~/.corkscrew-auth
调试ssh尝试会产生以下消息:

OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /home/vivek/.ssh/config
debug1: /home/vivek/.ssh/config line 1: Applying options for github.com
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Executing proxy command: exec corkscrew proxy62.iitd.ernet.in 80 ssh.github.com 443 ~/.corkscrew-auth
debug1: permanently_drop_suid: 1000
debug1: identity file /home/vivek/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/vivek/.ssh/id_rsa-cert type -1
debug1: identity file /home/vivek/.ssh/id_dsa type -1
debug1: identity file /home/vivek/.ssh/id_dsa-cert type -1
debug1: identity file /home/vivek/.ssh/id_ecdsa type -1
debug1: identity file /home/vivek/.ssh/id_ecdsa-cert type -1
Proxy could not open connnection to ssh.github.com:  Method Not Allowed
ssh_exchange_identification: Connection closed by remote host
因为这里的代理服务器需要身份验证,所以我在我的主目录中创建了一个corkstrow.auth文件,在那里我以username:password的形式输入凭据

如何在这里正确设置ssh?我认为我应该能够使用http代理隧道实现ssh,无论发生什么。如果有任何帮助,我将不胜感激。

您应该将80中的proxy62.iitd.ernet.in替换为10.10.78.62 3128。此外,您可以删除~/.corkscew auth,只需从浏览器登录到代理即可