title: packet_write_wait: Connection to @host port 22: Broken pipe
body: <p>I'm trying to copy some files from production server(ubuntu 16.04) to backup server(ubuntu 16.04) using scp command but getting</p>
  <pre><code>packet_write_wait: Connection to @host port 22: Broken pipe
  Lost connection
  </code></pre>
  <p>I have tried adding</p>
  <pre><code>-o ServerAliveInterval=30 -o ServerAliveCountMax=5
  </code></pre>
  <p>from
  <a href="https://superuser.com/questions/1331240/packet-write-wait-connection-to-xxx-port-3591-broken-pipe">https://superuser.com/questions/1331240/packet-write-wait-connection-to-xxx-port-3591-broken-pipe</a>
  <a href="https://superuser.com/questions/1331240/packet-write-wait-connection-to-xxx-port-3591-broken-pipe">https://superuser.com/questions/1331240/packet-write-wait-connection-to-xxx-port-3591-broken-pipe</a>
  <a href="https://superuser.com/questions/1137584/packet-write-wait-broken-pipe-error-on-macos-sierra-ssh">https://superuser.com/questions/1137584/packet-write-wait-broken-pipe-error-on-macos-sierra-ssh</a>
  but then its started throwing</p>
  <pre><code>Timeout, server @host not responding.
  lost connection
  </code></pre>
  <p>I'm able to get the ssh connection to the backup server but not able to copy any files.
  Point out something which I can do and copy files to backup server.Thanks in advance.</p>
  <p>I found that I can copy files/folders upto 4k size to backup server but not bigger files. it's working when I'm trying to copy large files to another server but not on backup server.</p>