SSH "Write failed: Broken pipe" timeout issue fixed, sshpipe
Bloggers are keen on a variety of Internet technologies. They are often nagging and often accompanied by obsessive-compulsive disorder and are often updated. If they think that the articles are helpful to you, they can pay attention to me. For more information, see "Deep Blue Sickle"
When using ssh, the error message "Write failed: Broken pipe" is often prompted because ssh is not operated for a period of time, and then you have to log on to ssh again.
The reason is that it exceeds the time required by the client to send a response. You only need to configure SSH on the server.
Open/etc/ssh/sshd_config
vim /etc/ssh/sshd_config
Configure the following two items
ClientAliveInterval 360 ClientAliveCountMax 10
Where
ClientAliveIntervalIndicates the allowed time-out interval (in seconds ),
ClientAliveCountMaxIndicates the number of times timeout is allowed. In combination, timeout is allowed for 360*10 seconds (1 hour)
Restart the following ssh services
service sshd restart
Stopping sshd: [OK]
Starting sshd: [OK]
Done.