I connect to my device through ssh from my machine. If I am not active for some relatively short time, it closes the session after sometime.
Connection to 10.X.Y.Z closed by remote host.
Connection to 10.X.Y.Z closed.
Is there a way to increase that session hold on timer?
At the moment, I have put the below settings in my ssh config -
ServerAliveInterval 120
ServerAliveCountMax 720
But it is not helping me.
*AliveInterval
ssh settings have nothing to do with kicking inactive users out. They're supposed to terminate connections where the other end is no longer reachable because of network problems, client/server crashed/freezed, etc. It's probably some shell setting (bash's$TMOUT
?) or some other contrivance which is causing you to be kicked out after some period of inactivity. – Nov 06 '20 at 07:39echo $TMOUT
on the target side telling (see @user414777) , and what time iterval are we talking about here? – Nils Nov 07 '20 at 21:56