Total Pageviews

Monday, October 3, 2011

How to Prevent Putty Session being inactive...................

I am frequent user of putty many time when i left my desk for couples of minutes or more than 15 min sometimes there is  Putty (inactive) problem occurs, i lost control the server which i was accessing from putty. When i went to depth of this problem i found it happens because servers are usually configured to disconnect idle sessions after they are inactive for a particular time. This has many disadvantages. You can no longer monitor the jobs running in the background and the UP arrow for previous commands may not work. And you have to enter the username and password again after restarting the session.

This is how you keep it alive for longer periods
  • open putty , Right click on Putty title bar, then click onchange setting option.

  • Before saving a session, click on Connection in the left pane.

  • Enter a number, in place of zero, in the text box. as i changed from 0 to 30. Save this by pressing apply button.
  • Now go back and save your session so that this setting will be same for future .

This way, the session sends a keep-alive request to the server every 30 seconds. Hence, it stays active.

No comments:

Post a Comment