ssh_exchange_identification Connection closed by remote host

报错:

1
ssh_exchange_identification: Connection closed by remote host

解决:

1
2
3
vim /etc/ssh/sshd_config
#MaxStartups 10:30:100
MaxStartups 15:30:100

10:30:100表示的意思是,从第10个连接开始,以30%的概率(递增)拒绝新的连接,直到连接数达到100