1、打开/etc/ssh/sshd_config
vim /etc/ssh/sshd_config
2、设置如下内容:
MaxAuthTries 60
MaxSessions 3
ClientAliveInterval 60
ClientAliveCountMax 3
3、重新加载sshd服务
service sshd reload
2023-12-21 17:14:21
MaxAuthTries 60
MaxSessions 3
ClientAliveInterval 60
ClientAliveCountMax 3
3、重新加载sshd服务
service sshd reload