[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: SSH connection timeout?

I don't think the ClientAlive settings involve inactivity, rather they
check for an unresponsive remote client.  (So a session could be idle, but
the client still responds to the servers ClientAlive inquiries.)

You might instead consider setting inactivity timeouts for login shells
(which would also apply to local console logins).  You can do this for
sh/bash and csh at least by dropping files into /etc/profile.d/ like

# seconds
readonly TMOUT
export TMOUT

# minutes
set autologout=15


On Fri, February 16, 2007 7:25 am, Clark, Patti wrote:
> I've been working on tweaking RHEL4 for settings to meet various
> security requirements.  One question that has come up is whether an ssh
> session can have an idle timeout set.  I'd thought that using
> ClientAliveInterval and ClientAliveCountMax were the solution (restart
> sshd after mods).  However, I am not seeing that happen.  So, the
> question, are these 2 parameters suppose to work for idle timeout, or
> are they used only for when the client "system" really goes to lunch?
> Are there parameters for setting idle timeout for ssh sessions?
> Patti Clark
> Unix System Administrator - RHCT
> Office of Scientific and Technical Information
> --
> nahant-list mailing list
> nahant-list redhat com
> https://www.redhat.com/mailman/listinfo/nahant-list

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]