Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to timeout idle sftp/ssh sessions without killing foreground processes

807559Feb 26 2007 — edited Feb 26 2007
Hi,
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 26 2007
Added on Feb 26 2007
1 comment
1,156 views