¿Qué significa el mensaje de tubería rota en una sesión SSH?

Pregunta:

A veces, mi sesión SSH se desconecta con un mensaje de error de Write failed: Broken pipe . Qué significa eso? ¿Y cómo puedo mantener abierta mi sesión?

Sé sobre la screen , pero esa no es la respuesta que estoy buscando. Creo que esta es una opción de configuración de sshd .

Respuesta:

Es posible que su servidor cierre las conexiones que están inactivas durante demasiado tiempo. Puede actualizar su cliente ( ServerAliveInterval ) o su servidor ( ClientAliveInterval )

 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.  This option applies to protocol version 2 only.

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

Para actualizar su servidor (y reiniciar su sshd )

echo "ClientAliveInterval 60" | sudo tee -a /etc/ssh/sshd_config

O del lado del cliente:

echo "ServerAliveInterval 60" >> ~/.ssh/config 

Leave a Comment

Your email address will not be published. Required fields are marked *

web tasarım