nano /etc/ssh/sshd_config Config to long live ssh sessions TCPKeepAlive yes ClientAliveInterval 60 ClientAliveCountMax 10 Restart service ssh restart