Linux 偶尔会遇到错误“;ssh交换标识:读取:对等方重置连接”;

Linux 偶尔会遇到错误“;ssh交换标识:读取:对等方重置连接”;,linux,ssh,Linux,Ssh,我已经在Serverfault()上发布了这个问题,但没有得到答案。因此,我在这里重新提出这个问题,希望更多地接触专家 当我尝试使用ssh连接远程Linux服务器时,有时会出现错误ssh\u exchange\u identification:read:Connection reset by peer,而其他时候我可以成功连接到服务器。当我已经打开另一个成功的ssh连接并且可以在服务器上运行命令时,也会发生此错误 在服务器端(Ubuntu机器),我在/var/log/syslog或auth.lo

我已经在Serverfault()上发布了这个问题,但没有得到答案。因此,我在这里重新提出这个问题,希望更多地接触专家

当我尝试使用ssh连接远程Linux服务器时,有时会出现错误
ssh\u exchange\u identification:read:Connection reset by peer
,而其他时候我可以成功连接到服务器。当我已经打开另一个成功的ssh连接并且可以在服务器上运行命令时,也会发生此错误

在服务器端(Ubuntu机器),我在/var/log/syslog或auth.log中都没有发现连接失败的记录

在我的本地机器上,
ssh IP-vv
提供了以下似乎也没有帮助的信息

OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to IP [IP] port 22.
debug1: Connection established.
debug1: identity file /home/luke/.ssh/identity type -1
debug1: identity file /home/luke/.ssh/identity-cert type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/luke/.ssh/id_rsa type -1
debug1: identity file /home/luke/.ssh/id_rsa-cert type -1
debug1: identity file /home/luke/.ssh/id_dsa type -1
debug1: identity file /home/luke/.ssh/id_dsa-cert type -1
debug1: identity file /home/luke/.ssh/id_ecdsa type -1
debug1: identity file /home/luke/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: read: Connection reset by peer

知道如何调试这个错误吗?事实上,它经常发生,但困难的是,它并不总是发生。我还试图在VirtualBox中安装完全相同版本的openSSH和相同版本的Ubuntu,并从那里进行连接,但这些都没有帮助。

听起来有点像一个脆弱的网络。可能是一些令人惊讶的路由效应或类似的。包裹掉落。@arkascha感谢您的回答。有没有办法确定原因?我可以使用另一个打开的连接正常工作,但在尝试打开新连接时会看到此错误。您可以为此尝试使用Charles之类的调试代理。它允许嗅探加密连接,但这是一个很大的工作。不确定是否有回报。另外,如果您还没有尝试过,请提高调试级别,作为获取更多详细信息的第一步。@arkascha我尝试过提高调试级别,但没有帮助。如果这种错误发生得更频繁,我会试试查尔斯。非常感谢。看看or(这是同一个问题;错误只是措辞不同)。