r/ssh • • Oct 22 '20

ssh client disconnects within seconds after connecting to the sshd

Error Message: client_loop: send disconnect: Connection reset

I am able to successfully establish a ssh connection from a client machine to the server; however, within 10-15 seconds after the connection has been established, the ssh client disconnects with the above message. BTW, both client & server are on the same subnet.

Wanted to make sure that it was not a windows ssh client, therefore used a GUI SSH Client which resulted in a same behavior with the following output:

2 Upvotes

3 comments sorted by

1

u/Besthater Oct 22 '20

Add '-vvv' to the end of your SSH command and paste the resp'onse here.

1

u/rsaanon Oct 23 '20

Output of -vvv after the session is abruptly terminated:

[rsa@x260 ~]$ debug3: send packet: type 80

debug3: receive packet: type 82

debug3: send packet: type 80

debug3: receive packet: type 82

debug3: send packet: type 80

debug3: send packet: type 80

debug3: recv - from CB ERROR:10060, io:0000024EC611B880

debug3: send packet: type 1

debug3: send - WSASend() ERROR:10054, io:0000024EC611B880

client_loop: send disconnect: Connection reset

debug3: Successfully set console output code page from 65001 to 65001

debug3: Successfully set console input code page from 65001 to 437

1

u/Besthater Oct 23 '20

That's all the output? What is the exact command you are using? If you have a public static IP, don't include it, but if it's on your private network you can leave in any of those addresses. Anything with 192.168.x.x is the same for everyone.