SSH – Pipe Broken Error

Error:

packet_write_wait: Connection to xxx.xx.xx.xxx port 22: Broken pipe


Solution:

The error means your SSH connection was cut off due to a long period of inactivity. Screen is a powerful utility that allows you to control multiple terminals which will stay alive independently of the ssh session.

To start a new screen session:

screen

To check background screen sessions:

 screen -ls

To resume a session:

 screen -r session_name

Reference: How to prevent “Write Failed: broken pipe” on SSH connection?