连接数限制

ssh_exchange_identification: read: Connection reset by peer

应急方案

应急方案1、 重启服务器(估计远程连接也连接不了的话)
应急方案2、关闭ssh连接(如果可以进行远程连接)
systemctl restart sshd

解决方案

vi /etc/ssh/sshd_config

  • 把MaxStartups值改为1000

重启SSH服务,/etc/rc.d/init.d/sshd restart

查看端口连接数

查看22端口的连接数

netstat -nat|grep -i '22' |wc -l

标签: none

添加新评论