Question: How to configure timeout on PUTTY to keep alive the ssh session?

The SSH Connection has timeout due to inactivity at the TCP communications level where the server will decide to disconnect if it sees no activity on the connection for a certain amount of time.

In order to configure timeout in Putty, check SSH Client App using the following settings, which can be tweaked to avoid this timeout (Similar settings can likely be found for other SSH apps including on handheld devices):

On a PC using PuTTy go to settings/Connections:

1. Set the “seconds between keepalives” to 10 (second)

2. The two checkboxes selected (Disable Nagle’s Algorithm, Enable TCP Keepalives).

3. Remember to save the settings so it works in future sessions also.

This should prevent the low-level timeout from happening.

putty timeout configuration settings