[英]ssh_exchange_identification
My windows 7 system with cygwin is behind a corporate firewall, I installed corkscrew and my config file reads 我的带有cygwin的windows 7系统是在公司防火墙后面,我安装了corkscrew,我的配置文件读取
User git
HostName ssh.github.com
Port 443
ProxyCommand /d/cygwin/bin/corkscrew http://x.x.x.x 80 %h %p /c/Users/ad cd/.ssh/id_rsa.
But when I do git clone ssh://git@github.com:443/rails/rails.git
, I get the error 但是当我做git clone ssh://git@github.com:443/rails/rails.git
,我收到了错误
Cloning into rails...
ssh_exchange_identification: Connection closed by remote host
fatal: The remote end hung up unexpectedly
There are a few problems with your corkscrew config. 您的corkscrew配置有一些问题。
The first problem (and probably the real problem) is that the first argument to corkscrew should be a hostname, not a URI. 第一个问题(可能是真正的问题)是corkscrew的第一个参数应该是主机名,而不是URI。 So drop the http:// prefix. 所以删除http://前缀。 The second argument lets corkscrew know that the proxy is on port 80. 第二个参数让corkscrew知道代理在端口80上。
Another problem is that corkscrew uses a username:password authfile for authorizing to the proxy, not an RSA key. 另一个问题是,corkscrew使用用户名:password authfile来授权代理,而不是RSA密钥。 Your last argument is an RSA private key, not an authfile. 您的最后一个参数是RSA私钥,而不是authfile。
Other than that, it is most likely that your RSA public key is not registered with github. 除此之外,您的RSA公钥很可能未在github中注册。
Git只使用SSH作为传输/安全性,因此请尝试使用ssh -v直接进入开发框,以查看您的密钥是否正确传递和接受。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.