Increse Ubuntu SSH remote session time
1 2 |
sudo nano /etc/ssh/sshd_config |
Apply below, if exist, change value, if not exist, add the line.
1 2 3 4 |
TCPKeepAlive no ClientAliveInterval 30 ClientAliveCountMax 100 |
Explain: TCPKeepAlive Whether or not to send TCP “alive” message to the connecting clients to test for connection issues. ClientAliveInterval A timeout interval to send encrypted alive message to clients if no data has been received from connection. ClientAliveCountMax Number of times to send […]