偶尔会遇到错误“ssh_exchange_identification:read:Connection reset by peer”

时间:2015-06-27 13:38:22

标签: linux ssh

我已在Serverfault(https://serverfault.com/questions/701920/occasionally-encounter-error-ssh-exchange-identification-read-connection-rese)上发布此问题,但没有得到答案。因此,我在这里重新提出这个问题,希望能够更多地接触专家。

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

在服务器端(Ubuntu机器),我在 / var / log / syslog auth.log 中找不到连接失败的记录。< / p>

在我的本地计算机上,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

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

0 个答案:

没有答案