Problem:
Getting "Write failed: Broken pipe" error during a putty session to Airwave
It’s possible that your server closes connections that are idle for too long. Another reason would be IP address Conflict.
If its related to server closing the connection, we can update either the client alive interval or the server alive interval.
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.
To update your server (and restart your sshd) execute the below command on Airwave CLI,
# echo "ClientAliveInterval 60" | sudo tee -a /etc/ssh/sshd_config
However, if its related to IP conflict, Check where the client and the server are getting their IP address. If you keep ping server.example.com running, does it help make the connection last longer? If so, you have an IP address conflict.
© Copyright 2024 Hewlett Packard Enterprise Development LPAll Rights Reserved.