Help!

Where to set SSH session timeout?

 
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security RSS
Next:  software to synchronize laptop with server or des..  
Author Message
Jenny
External


Since: Dec 12, 2006
Posts: 8



PostPosted: Wed Dec 27, 2006 11:54 am    Post subject: Where to set SSH session timeout?
Archived from groups: comp>os>linux>security (more info?)

Hi,

Where can I set the SSH session timeout in Redhat Linux?

Thanks and regards,
Yen Nee
Back to top
Damian 'legion' Szuberski
External


Since: Nov 08, 2006
Posts: 7



PostPosted: Wed Dec 27, 2006 7:59 pm    Post subject: Re: Where to set SSH session timeout? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2006-12-27, Jenny wrote:
> Where can I set the SSH session timeout in Redhat Linux?
man ssh_config / man sshd_config ?

--
Damian Szuberski
Back to top
Ertugrul Soeylemez
External


Since: Nov 03, 2005
Posts: 271



PostPosted: Wed Dec 27, 2006 9:40 pm    Post subject: Re: Where to set SSH session timeout? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Jenny" (06-12-27 06:54:51):

> Where can I set the SSH session timeout in Redhat Linux?

Since the SSH `session' is determined not only by the connection, but
also by the application which is used (mostly the login shell), there
are actually two kinds of timeouts. Either the SSHd should notice, when
the connection to the client is dead, or the application should notice,
when the user is idle (i.e. the user hasn't typed anything for a certain
amount of time).

In the former case, Damian Szube's answer is correct, and the man-pages
for ssh_config and (more likely) sshd_config are the ones you're looking
for. In the latter case, where there is nothing wrong with the
connection, it's the man-page for your shell.


Regards,
E.S.
Back to top
vwvr9



Joined: Apr 08, 2008
Posts: 3



PostPosted: Wed Apr 09, 2008 3:02 am    Post subject: [Login to view extended thread Info.]

This is how you do it,

echo "TMOUT=300 >> /etc/bashrc

echo "readonly TMOUT" >> /etc/bashrc

echo "export TMOUT" >> /etc/bashrc


I have posted about this before at http://thedaneshproject.com/posts/how-to-set-default-session-timeout-in-linux/
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum