lhmwzy Jan 20, 2009 #1 When ssh to a sever,how to auto-logout after XXX idle? in tcsh,I know to set autologout=X How in the default /bin/sh shell to autologut?
When ssh to a sever,how to auto-logout after XXX idle? in tcsh,I know to set autologout=X How in the default /bin/sh shell to autologut?
brd@ Administrator Administrator Developer Jan 20, 2009 #2 Some shells don't support the auto-logout features so if you have to have this feature, you'll need to switch to a shell that does.
Some shells don't support the auto-logout features so if you have to have this feature, you'll need to switch to a shell that does.
OP lhmwzy Jan 20, 2009 Thread Starter #3 brd@ said: Some shells don't support the auto-logout features so if you have to have this feature, you'll need to switch to a shell that does. Click to expand... TKS for your reply. You mean bourne shell doesn't support auto-logout? I know tcsh shell support auto-logout.
brd@ said: Some shells don't support the auto-logout features so if you have to have this feature, you'll need to switch to a shell that does. Click to expand... TKS for your reply. You mean bourne shell doesn't support auto-logout? I know tcsh shell support auto-logout.
S singularity Jan 20, 2009 #4 Bash should have a TMOUT variable with the time expressed in seconds. You could use bash to achieve what you want.
Bash should have a TMOUT variable with the time expressed in seconds. You could use bash to achieve what you want.