Linux: Disable SSH connection timeout
You need to set the Client and the Server to stop the automatic timeout of SSH non active connections.
Client:
/etc/ssh/ssh_config
Add the following to the bottom of the file:
# Client keep alive
ServerAliveInterval 60
Server:
/etc/ssh/sshd_config
Add the following to the bottom of the file:
# Server Keep Alive
ClientAliveInterval 120
TCPKeepAlive yes
ClientAliveCountMax 720
systemctl restart sshd
Note:
120 X 720 = 86400 seconds or 24 hours