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

Re: tiempo de inactivdad



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roberto Cesar Najera Nuñez wrote:
> Hola lista alguien tiene un script para contar el tiempo de inactividad
> en una terminal y si cumple ese tiempo que cierre la session ?
>  
> Esto es, tengo un terminal, (ssh, o telnet) y despues de 10 minutos de
> inactividad que me cierre la session
>  
> de antemano Gracias !

de telnet olvidate.

man sshd_config:
 ClientAliveInterval
             Sets a timeout interval in seconds after which if no data
has been received from the client, sshd will send
             a message through the encrypted channel to request a
response from the client.  The default is 0, indicat-
             ing that these messages will not be sent to the client.
This option applies to protocol version 2 only.

     ClientAliveCountMax
             Sets the number of client alive messages (see above) which
may be sent without sshd receiving any messages
             back from the client.  If this threshold is reached while
client alive messages are being sent, sshd will
             disconnect the client, terminating the session.  It is
important to note that the use of client alive mes-
             sages is very different from TCPKeepAlive (below).  The
client alive messages are sent through the
             encrypted channel and therefore will not be spoofable.  The
TCP keepalive option enabled by TCPKeepAlive is
             spoofable.  The client alive mechanism is valuable when the
client or server depend on knowing when a con-
             nection has become inactive.

             The default value is 3.  If ClientAliveInterval (above) is
set to 15, and ClientAliveCountMax is left at
             the default, unresponsive ssh clients will be disconnected
after approximately 45 seconds.



- --
Ricardo A.Frydman
Consultor en Tecnología Open Source - Administrador de Sistemas
jabber: ricardoeureka@gmail.com - http://www.eureka-linux.com.ar
SIP # 1-747-667-9534
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFDRYAZkw12RhFuGy4RAhwlAJ9WH+DO39mpKsW8AGw3EQVbvqAlAgCdFFiU
5p58HxO5HXHu0ghXU/TcnJo=
=PRIQ
-----END PGP SIGNATURE-----



Reply to: