第一步、打开SSH的配置文件
vim /etc/ssh/sshd_config
第二步、编辑文件中的连接时长(ClientAliveInterval)、时间间隔(ClientAliveCountMax)
ClientAliveInterval 120
ClientAliveCountMax 100