git(ssh_exchange_identification)连接重置由同级(窗口,gitlab)

我想在Windows(PuTTY)上使用ssh连接到一个gitlab服务器(我没有权限)。 我尝试过的git客户端从简单的git,git-extensions,sourcetree和git bash / gui。 他们都基本告诉我:

Cloning into 'repo'... debug2: ssh_connect: needpriv 0 debug1: Connecting to git.server [xyzw] port 22. debug1: Connection established. debug3: Incorrect RSA1 identifier debug3: Could not load "/c/Users/user/.ssh/id_rsa" as a RSA1 public key debug1: identity file /c/Users/user/.ssh/id_rsa type 1 debug1: identity file /c/Users/user/.ssh/id_rsa-cert type -1 debug1: identity file /c/Users/user/.ssh/id_dsa type -1 debug1: identity file /c/Users/user/.ssh/id_dsa-cert type -1 debug1: identity file /c/Users/user/.ssh/id_ecdsa type -1 debug1: identity file /c/Users/user/.ssh/id_ecdsa-cert type -1 debug1: identity file /c/Users/user/.ssh/id_ed25519 type -1 debug1: identity file /c/Users/user/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1 ssh_exchange_identification: read: Connection reset by peer fatal: Could not read from remote repository. 

我已经更改了repo / server / ip / user的名字,但是这是我每次尝试连接时所得到的。 debug3消息不应该真的有什么兴趣(?)我已经看过类似的post在这里和其他方面有关的SSH和GitLab,但其中大部分涉及服务器端问题和安装障碍。 所有build议的选项都没有任何效果,包括重新生成密钥。 我尝试连接的Gitlab版本是GitLab 7.7.2 bd98290。

我用putty-gen来转换私人的SSH密钥,以便它可以加载(我试过3种可能的types)。 我可以在bitbucket和其他git服务器上使用ssh,所以我很困惑为什么每次都被抛弃。 是否有客户端的事情可以做validation/debugging连接?

视窗

我有一个cygwin安装,但一段时间没有使用。 它还链接回标准的Windowsconfiguration文件的SSH(我第一次看到它们是空的,我已经尝试了一些补充关于密码和LDAP和各种Git内存包/解压设置,但没有真正帮助)

我已closuresWindows防火墙,看看是否有任何影响的沟通,但没有运气到目前为止。

再生性

其他人可以使用他们的SSH密钥连接到存储库,在同一个子网。 我也可以使用http版本,但是它每次都会以大约88%的速度打破克隆过程,可能是因为回购(太)大。 我想用reflog缩小它的大小,但是我必须能够在本地克隆它,对吗?

提前致谢。

这是最终解决了我的问题的解决方案。

1)我注意到我不能在同一子网内使用http连接,但我设法使用来自另一个子网的http进行连接。

2)我使用git-ext修剪所有大文件。 对于这种事情,这真是一个很棒的工具。 唯一的缺点是它会一直列出大文件,即使在所有分支上删除(强制)。

3)出于某种原因,即使在同一子网内,http和ssh也能正确连接。

也许一些网络gitlab专家知道这可能是什么原因造成的? 我碰到了某种类型的门槛? 网络故障? Gitlab滑落? 外星人在电线上?