减少ssh自动掉线的频率

减少ssh自动掉线的频率:

运行 sudo vim /etc/ssh/sshd_config

添加

ServerAliveInterval 20

ServerAliveCountMax 999

 

重启sshd服务:

service sshd restart

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注