The "broken pipe" occurs when a SSH sessions times out. To resolve this you have 2 possibilities:
Server-Side (Linux):
-
open /etc/ssh/sshd_config
# vim /etc/ssh/sshd_config -
uncomment the lines:
TCPKeepAlive Yes
ClientAliveInterval 0 (change the 0 to 60, so every 60 seconds a keep alive packet is sent) - save the config
-
restart ssh server
# service sshd restart
Client-Side (MacOSX/Linux):
- open ~/.ssh/ssh_config (linux) or ~/.ssh/config (MacOSX)
-
add following lines:
ServerAliveInterval 60 (send packet every 60 seconds) - save file