Putty keep alive session without connection timeout
Putty keep alive session without connection timeout
When i connect to my linux / unix server using putty it timeouts after sometime automatically. If i do nothing for sometime the session timeouts and it popup an error sometimes stating that the session has timeout. This is very annoying especially when i am running a script / command that takes longer time than usual to complete, and getting the connection cancelled automatically during that time might end up in major errors in the script. So how to keep alive the sessions without timeout. Here is the simple step by step instruction with screenshot.
Step 1
Open your putty software and click on CONNECTIONS in the left menu sidebar.
On the right side you can see an option “Sending of null packets to keep session active”, under that there is a input field that has the “Seconds between keepalives” and by default it will be 0 that means this option is turned off. Change that to 1
Step 2
Click on the Session category on the left menu and you should be able to see your saved session. Note: If you are using default settings, then save that by highlighting it. If you have your own customized session name then click or highlight that and save the changes.
You are done. Now you can open your putty session and it will not get timeout due to inactivity.