设置ubuntu ssh超时时间

由 Jefsky 发布于 2024-01-04

/etc/ssh/sshd_config

ClientAliveInterval 540

ClientAliveCountMax 10

ClientAliveCountMax 指如果发现客户端没有相应,则判断一次超时,这个参数设置允许超时的次数。比如10

ClientAliveInterval 代表允许超时 5400秒 = 90分钟