SSH issues: Read from socket failed: Connection reset by peer

Posted by nitins on Server Fault See other posts from Server Fault or by nitins
Published on 2014-03-20T09:54:51Z Indexed on 2014/06/10 21:29 UTC
Read the original article Hit count: 256

Filed under:
|
|

I compiled OpenSSH_6.6p1 on one of our server. I am able login via SSH to the upgraded server. But I am not able to connect to other servers running OpenSSH_6.6p1 or OpenSSH_5.8 from this. While connecting I am getting an error as below.

Read from socket failed: Connection reset by peer

On the destination server in the logs, I am seeing it as below.

sshd: fatal: Read from socket failed: Connection reset by peer [preauth]

I tried specifying the cipher_spec [ ssh -c aes128-ctr destination-server ] as mentioned in here and was able to connect. How can configure ssh to use the cipher by default? Why is the cipher required here?

© Server Fault or respective owner

Related posts about linux

Related posts about ssh