简体   繁体   English

ssh_exchange_identification

[英]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.

相关问题 git ssh_exchange_identification:阅读:软件导致连接中止 - git ssh_exchange_identification: read: Software caused connection abort bibucket ssh_exchange_identification:读取:对等方重置连接 - bibucket ssh_exchange_identification: read: Connection reset by peer GitHub 错误 - “ssh_exchange_identification: read: Connection reset by peer” - GitHub error - “ssh_exchange_identification: read: Connection reset by peer” Bitbucket ssh测试返回“远程:ssh_exchange_identification:读取:操作超时” - Bitbucket ssh test returns `remote: ssh_exchange_identification: read: Operation timed out` "突然开始使用 git\/bitbucket 收到 ssh_exchange_identification 错误" - Suddenly started to receive ssh_exchange_identification error using git/bitbucket 尝试连接到 git 上的远程存储库时出现“ssh_exchange_identification: read: Connection reset by peer”错误 - "ssh_exchange_identification: read: Connection reset by peer" error when trying to connect to remote repository on git ssh git kex_exchange_identification:读取:对等方重置连接 - ssh git kex_exchange_identification: read: Connection reset by peer 无法使用 git 克隆、推送、拉取 ssh,引发 kex_exchange_identification 错误 - Fail to git clone, push, pull with ssh, raise kex_exchange_identification error 避免 git 中的 kex_exchange_identification 错误 - avoid kex_exchange_identification error in git kex_exchange_identification:读:操作超时 - kex_exchange_identification: read: Operation timed out
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM