Score:0

Random SSH terminal disconnection Error: kex_exchange_identification: Connection closed by remote host

bw flag

We get the error kex_exchange_identification: Connection closed by remote host randomly. Sometimes we are able to connect with our remote hosts.

As a workaround, we powered off and on our remote host, and this error kex_exchange_identification: Connection closed by remote host disappears.

Verbose logs:

$ 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

Does anybody have any idea why we are having this issue?

Michael Hampton avatar
cz flag
You need to look at the logs on the _server_.
user768503 avatar
bw flag
Which server logs? I have auth.log and syslog.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.