How to keep SSH sessions alive

Edit your ssh_config file like this:

/etc/ssh/ssh_config:
ServerAliveInterval 30

This will cause your SSH client to send a keep alive ping every 30 seconds to the server.

This entry was posted in Linux, SSH. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>