How to timeout idle sftp/ssh sessions without killing foreground processes
807559Feb 26 2007 — edited Feb 26 2007Hi,
Recently there have been two patches releases by Sun which add ClientAliveInterval and ClientAliveCountMax to the sshd_config options in Solaris 9.
By setting these options, one can control ssh/sftp timeout. I set ClientAliveInterval to some positive timeout in seconds and ClientAliveCountMax to 0 and then observed that timeout occurs after the specified interval. However, all foreground processes also get killed.
On the other hand, if I set ClientAliveCountMax to a non-zero postive value, ssh never timed out.
So, I wanted to know if there is any solution to this ? Also, is there any other option/file to control sftp/ssh timeout ?
Thanks.