Change session timeout while interacating over SSH connection

Posted November 17, 2014 15.6k views

How to increase/disable session timeout while interacting with my droplet from terminal over a SSH connection ?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Which SSH client are you using? The easiest (and recommended) way to change this is to alter the polling rate on the client side.

If you happen to be using putty for Windows, you can change your polling under Connection. As show in this guide

You may also change it server side, as show here:

I would only recommend that you extend the timeout instead of removing it, as it may be a security risk if you leave yourself logged into a machine.

  • I am using the using the ssh-client from terminal on Mac OS X. Anyway the links that you pointed to helped me with the issue.
    I set the ServerAliveInterval for the ssh-client and “ClientAliveInterval” and “TCPKeepAlive” on the server. Now its working for me.

    Thanks a lot. Cheers !

  • That was the key! Thanks!