Did a search in www.openssh.org and found out what you have just emailed.
Since in our unix environment, ksh and bash are the standard shells, TMOUT 
is the way to go.
The problem is that savvy users can overwrite the global value in 
/etc/profile with a local value in $HOME/.profile.
I was hoping that openssh would provide a more robust solution.

Anyway, thanks for the info.
---------------------------------------------------------------------------------------------

Any comments or statements made in this transmission reflect the views of 
the sender and are not necessarily the views of the Federal Reserve Bank 
of New York.



sunlist <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
10/21/2005 11:25 AM
Please respond to
Solaris-Users mailing list <[email protected]>


To
Solaris-Users mailing list <[email protected]>
cc

Subject
Re: [Solaris-Users] timing out ssh session






I'm always surprised when I see this question each time.  SSH, although 
encrypted, can be thought of as a transport mechanism to remotely access 
your 
system, such as telnet or rlogin.

You need to set the timeout in your shell.


For tcsh, you need to set the autologout variable.  For Ksh and Bash, the 
variable is TMOUT.  Read the man page for the shell that you are using. 
Not all 
shells support an idle timeout.




[EMAIL PROTECTED] wrote:
> It doesn't work as I want.
> ClientAliveInterval and ClientAliveCountMax work for scenario where the 
> ssh session was terminated unexpectedly from client side without exiting 

> properly (command exit was not used to close the session). For instance, 

> the client workstation clashed. Somebody tripped on the power cord of 
the 
> workstation.
> What I want is to terminate IDLE ssh session. For instance, somebody has 
a 
> ssh session open and went for lunch without exiting the ssh session.
> 
---------------------------------------------------------------------------------------------
> 
_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

_______________________________________________
Solaris-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/solaris-users

Reply via email to