fix of the day (2)


packet_write_wait: Connection to xxx port 22: Broken pipe

SSH connections started dropping left and right a few days ago. I thought at first it was a problem with my connection, our DSL connection in Beirut, Lebanon is getting a lot better this last year. But it still had its quirks now and then and I blamed the wires and bad weather.

But it happened again the second day and the third, and it was becoming really annoying with jobs killed in the middle of execution when I forget to start a screen.

Long story short, it seems that some settings were removed or reset after an upgrade in Ubuntu on my home machine. This is what I added in /etc/ssh/ssh_config (not sshd_config!)

Host *
     ServerAliveInterval 30
     ServerAliveCountMax 5

And that’s it!

If you don’t want to edit the system-wide configuration, you can always edit ~/.ssh/config with the same for similar effect.

Similar Posts:




NO_PUBKEY A97AE96A0BEB6D3C

W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ftp.cyconet.org wheezy-updates Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A97AE96A0BEB6D3C

W: Failed to fetch http://ftp.cyconet.org/debian/dists/wheezy-updates/Release

  1. # Solution:
  2. apt-get -t wheezy-updates install debian-cyconet-archive-keyring
  3. apt-get update

Similar Posts: