随机 SSH 终端断开连接错误:kex_exchange_identification:远程主机关闭连接

随机 SSH 终端断开连接错误:kex_exchange_identification:远程主机关闭连接

我们随机收到错误kex_exchange_identification: Connection closed by remote host。有时我们能够连接到远程主机。

作为一种解决方法,我们关闭并打开远程主机,此错误kex_exchange_identification: Connection closed by remote host消失。

详细日志:

$ ssh -vvvv -p 25899 [email protected]
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
debug3: Failed to open file:C:/Users/ghaza/.ssh/config error:2
debug3: Failed to open file:C:/ProgramData/ssh/ssh_config error:2
debug2: resolving "x.x.x.x" port 25899
debug2: ssh_connect_direct
debug1: Connecting to x.x.x.x [x.x.x.x] port 25899.
debug1: Connection established.
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_rsa error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_rsa.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_rsa type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_rsa-cert error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_rsa-cert.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_rsa-cert type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_dsa error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_dsa.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_dsa type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_dsa-cert error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_dsa-cert.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_dsa-cert type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ecdsa error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ecdsa.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_ecdsa type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ecdsa-cert error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ecdsa-cert.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_ecdsa-cert type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ed25519 error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ed25519.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_ed25519 type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ed25519-cert error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_ed25519-cert.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_ed25519-cert type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_xmss error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_xmss.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_xmss type -1
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_xmss-cert error:2
debug3: Failed to open file:C:/Users/ghaza/.ssh/id_xmss-cert.pub error:2
debug1: identity file C:\\Users\\ghaza/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.1

有人知道我们为什么会遇到这个问题吗?

相关内容