Re: Where to set SSH session timeout?



"Jenny" <yennee_yap@xxxxxxxxx> (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.
.



Relevant Pages

  • Re: Keeping OpenSSH connections alive
    ... The TCP connection is timing out, not the SSH session. ... You can then, reconnect to the backgrounded screen session, upon relogin. ...
    (SSH)
  • ssh connections hang; un-hang on subsequent connection
    ... I'm experiencing a strange problem with ssh connections to my ssh server ... I can make an initial connection to my ssh server fine. ... When I re-connect with ssh, the first session "thaws" and all ...
    (comp.security.ssh)
  • Re: Reconnect to a specific TTY session?
    ... I get a new TTY session. ... I don't know if you can reconnect to the old tty (if ssh noticed the ... connection went away it should SIGTERM its children, ...
    (Debian-User)
  • Re: Reconnect to a specific TTY session?
    ... I get a new TTY session. ... I don't know if you can reconnect to the old tty (if ssh noticed the ... connection went away it should SIGTERM its children, anyway...), but you ... "One disk to rule them all, ...
    (Debian-User)
  • Re: openssh refuses to close if open stderr/stdout/stdin
    ... ]> leave one of those ports dangling even if put into the background. ... ]> hangs the closing of ssh. ... The session closes, so ... mount will hold open a connection. ...
    (comp.security.ssh)