Dec 13, 2014

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


How to fix : Read from socket failed: Connection reset by peer.

This can be done on remote host, without loosing connection.

# Recreate host keys

sudo rm /etc/ssh/ssh_host_*
sudo ssh-keygen -A

# Re-install SSh

sudo apt-get --reinstall install openssh-server openssh-client

# Edit sshd_config by adding a value

nano /etc/ssh/sshd_config

add :  MaxAuthTries 3

# Edit ssh_config by uncommenting a value

Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc

0 comments :

Post a Comment

Comment: