Skip to content

Keep SSH connection alive

Edit user's SSH configuration:

vi ~/.ssh/config

Put the following line inside:

ServerAliveInterval 240

This option enables a null packet sending each 240 second to keep the connection alive.