sudo vim /etc/ssh/sshd_config
ClientAliveInterval
ClientAliveCountMax
ClientAliveInterval 60 ClientAliveCountMax 3