Last updated on October 25th, 2014 at 09:37 am
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.
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
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.