CentOS 6.0 设置SSH保持链接时间
安全所需,SSH链接闲置后,SSH Server 会在超时后自动终止 SSH 连线。
设置这个时间的方法:
/etc/ssh/sshd_config
```
编辑 ClientAliveCountMax,单位分钟。
重启 sshd:
/etc/rc.d/init.d/sshd restart
```
绝对路径
安全 SSH 链接 闲置 Server 超时 自动 终止
安全所需,SSH链接闲置后,SSH Server 会在超时后自动终止 SSH 连线。
设置这个时间的方法:
/etc/ssh/sshd_config
```
编辑 ClientAliveCountMax,单位分钟。
重启 sshd:
/etc/rc.d/init.d/sshd restart
```
绝对路径
安全 SSH 链接 闲置 Server 超时 自动 终止