Write failed: Broken pipe
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×
A question can only have one accepted answer. Are you sure you want to replace the current answer with this one?
You previously marked this answer as accepted. Are you sure you want to unaccept it?
You can also configure your client to keep alive the connection every n seconds with ServerAliveInterval.
Edit /etc/ssh/ssh_config or ~/.ssh/config and add
It will send a keep alive every 360 seconds. Goes under the
Host * directive so it applies to all the boxes you connect to. And that way you don’t need to edit sshd_config on all your servers.