Tag Archives: SSH error

[SSH error] ssh_exchange_identification: read: Connection reset by peer

When logging in remotely, the following error occurred in ssh root@xxxxxxxxx

ssh_exchange_identification: read: Connection reset by peer

Solution: Log in to the remote server to change the configuration file and add

[root@localhost ~]# vi /etc/ hosts.allow
########################

##Allow all ip hosts to be able to connect to this machine·
sshd: ALL 

[root@localhost ~]# systemctl restart sshd