My windows 7 system with cygwin is behind a corporate firewall, I installed corkscrew and my config file reads
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
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.
The first problem (and probably the real problem) is that the first argument to corkscrew should be a hostname, not a URI. So drop the http:// prefix. The second argument lets corkscrew know that the proxy is on port 80.
Another problem is that corkscrew uses a username:password authfile for authorizing to the proxy, not an RSA key. Your last argument is an RSA private key, not an authfile.
Other than that, it is most likely that your RSA public key is not registered with github.
Git只使用SSH作为传输/安全性,因此请尝试使用ssh -v直接进入开发框,以查看您的密钥是否正确传递和接受。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.