git (ssh_exchange_identification) 连接被对等方重置 (windows, gitlab)

Sta*_*ine 5 windows ssh putty 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 [x.y.z.w] 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.
Run Code Online (Sandbox Code Playgroud)

我已经更改了 repo/server/ip/user 的名称,但除此之外,这就是我每次尝试连接时得到的结果。debug3 消息不应该真正引起任何兴趣(?)我在这里以及与 ssh 和 GitLab 相关的其他方面查看了类似的帖子,但其中大多数都涉及服务器端问题和安装障碍。所有建议的选项都没有任何效果,包括重新生成密钥。我尝试连接的 Gitlab 版本是 GitLab 7.7.2 bd98290。

我使用 putty-gen 来转换私有 ssh 密钥,以便可以加载它(我尝试了 3 种可能的类型)。我可以在 bitbucket 和其他 git 服务器上使用 ssh,所以我很困惑为什么我每次都会被甩掉。我可以在客户端做一些事情来验证/调试连接吗?

视窗

我确实安装了 cygwin,但有一段时间没有使用它了。它还链接回 ssh 的标准 Windows 配置文件(当我第一次查看它们时,这些文件是空的,我尝试了一些有关密码和 LDAP 的添加以及各种 git 内存包/解包设置,但这些都没有真正帮助)

我已经关闭了 Windows 防火墙,看看这是否对通信有任何影响,但到目前为止还没有运气。

再现性

其他人可以使用同一子网中的 SSH 密钥连接到存储库。我也可以使用 http 版本,但每次克隆过程都会中断 88% 左右,可能是因为 repo 太大了。我想使用 reflog 缩小它的大小,但我必须首先能够在本地克隆它,对吧?

提前致谢。

Sta*_*ine 1

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

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

2)我使用git-ext修剪了所有大文件。对于此类事情来说,这确实是一个很棒的工具。唯一的缺点是它不断列出大文件,即使它们的删除已被推送(强制)到所有分支上。

3) 由于某种原因,http 和 ssh 现在可以正确连接,即使在同一子网内也是如此。

也许一些网络gitlab专家知道这可能是什么原因造成的?我碰到了某种障碍?网络故障?Gitlab 出错了?电线上有外星人?