si no se quiere que la conexión ssh se interrumpa por sí sola al cabo de un tiempo, son necesarios dos cambios:
del lado del cliente
nano .ssh/config
Host *
ServerAliveInterval 45
ServerAliveCountMax 3
del lado del servidor
sudo nano /etc/ssh/sshd_config
ClientAliveInterval 45
ClientAliveCountMax 3
ServerAliveInterval y ClientAliveInterval
Sets a timeout interval in seconds after which if no data has been received from the server, ssh will send a message through the encrypted channel to request a response from the server. The default is 0, indicating that these messages will not be sent to the server.
ServerAliveInterval de «ssh_config» en OpenBSD.
Sets a timeout interval in seconds after which if no data has been received from the client, sshd will send a message through the encrypted channel to request a response from the client. The default is 0, indicating that these messages will not be sent to the client.
ClientAliveInterval de «ssh_config» en OpenBSD.