Ssh_exchange_identification

My windows 7 system with cygwin is behind the corporate firewall, I installed a corkscrew and my configuration file reads

User git HostName ssh.github.com Port 443 ProxyCommand /d/cygwin/bin/corkscrew http://xxxx 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 an error

 Cloning into rails... ssh_exchange_identification: Connection closed by remote host fatal: The remote end hung up unexpectedly 
+4
source share
2 answers

There are several problems with configuring your corkscrew.

The first problem (and probably the real problem) is that the first argument to the corkscrew should be the host name, not the URI. Therefore, remove the http: // prefix. The second argument lets the corkscrew know that the proxy server is on port 80.

Another problem is that the corkscrew uses the username: authfile password for proxy authorization, not the RSA key. The final argument is the RSA private key, not authfile.

Also, most likely your RSA public key is not registered on github.

+3
source

Git just uses SSH as transport / security, so try ssh'ing directly in the dev box using ssh -v to check if your keys are correctly transmitted and received.

0
source

All Articles