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

Re: Console qui fige



Le 13/04/2014 23:27, Daniel Caillibaud a écrit :
> ...
> Je suppose donc que c'est le modem (ou un routeur du fai) qui coupe la
> connexion au bout d'un moment sans traffic et que le client parvient
> pas à la rouvrir, mais je vois pas comment contourner le pb.
> 
> J'ai regardé /etc/ssh/ssh_config mais pas vu de param particulier pour
> maintenir une connexion active (et j'ai rien de spécial dans mon
> ~/.ssh/config).

Bonjour,

As-tu essayé l'option ServerAliveInterval dans ~/.ssh/ssh_config ?

extrait de man ssh_config:
     ServerAliveInterval
       Sets a timeout interval in seconds after which if no data has
       been received from the server, ssh(1) will send a message through
       the encrypted channel to request a response from the server.  The
       default is 0, indicating that these messages will not be sent to
       the server, or 300 if the BatchMode option is set.  This option
       applies to protocol version 2 only.  ProtocolKeepAlives and
       SetupTimeOut are Debian-specific compatibility aliases for this
       option.

Tu peux aussi tenter d'agir sur le serveur ssh si tu as la main dessus
avec l'option pendante: ClientAliveInterval dans /etc/ssh/sshd_config



Reply to: