}

OSX MAC Solution to SSH Broken Pipe

Created:

This solution is when you are using a ssh connection and you got disconnected with the "Broken Pipe" error.

Open with vim /etc/ssh/ssh_config or ~/.ssh/config and edit the file to add ServerAliveInterval and TCPKeepAlive:

Host * ServerAliveInterval 120 TCPKeepAlive no

Setting the ServerAliveInterval will send a request every 120, this will be helpful since some servers drop connections after some inactivity.

The TCPKeepAlive value to no will help in situations when there are connections problems while ssh is idle in the background ti won't kill the connection.

Please leave comments if this solution worked for you!