今天在服务器上试了好多次密码,然后结果就登录不进去了,总是在报错:

ssh_exchange_identification: Connection closed by remote host

解决方法

root用户登录进去,然后执行下面的命令:

echo "sshd: ALL" >> /etc/hosts.allow && service