Linux: antidle SSH client

Linux: antidle SSH client

May heappen that some of your connectivity provider, will hate your idle ssh connection, and so will drop down your connection.

This is not a big issue in most cases, the solution will be redo the login and go on from where we had arrived before timout (think about an ecommerce page), but think what can heappen if you connection will go down, and you’re not using a program like “screen” to let your upgrade finish.

 

To avoid this problems, we can configure our ssh config file for your user, to enable the anti-idle for ssh sessions.

So we start editing the files as follow

cd
nano .ssh/config

Now we can add the following parameters

ServerAliveInterval 60
ServerAliveCountMax 1440

Now we had setup our anti-idle how will avoid our provider to drop down the ssh connections.

 


Lascia un commento

Il tuo indirizzo email non sarà pubblicato.

Per postare il commento, risolvi il quesito sottostante * Time limit is exhausted. Please reload CAPTCHA.

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.