SSH – Pipe Broken Error


packet_write_wait: Connection to port 22: Broken pipe


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:


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?