ssh network timeout/Broken pipe problem
Posted: 10. Nov 2010, 19:38
I run some scripts using ssh on Vbox guests which occasionally are idle for about 5 minutes. I then get a "Broken Pipe" error. Problem can be shown with a simple ssh user@guest "sleep 180; echo 'done'" which produces a "Broken pipe" after the sleep.
The problem does not occur between regular, non-vbox hosts. The iptables firewall is disabled. There is no timeout sleeping 120 seconds.
Ssh has options for using TCP keepalive and application level keepalive packets (options TCPKeepALive, ServerAlive*). I have had no success fiddling with these. Is there anybody out there having better ideas how to handle this?
Host Fedora 13, Vbox 3.2.10, guests Fedora 13/x86_64 and Fedora 14/i686
The problem does not occur between regular, non-vbox hosts. The iptables firewall is disabled. There is no timeout sleeping 120 seconds.
Ssh has options for using TCP keepalive and application level keepalive packets (options TCPKeepALive, ServerAlive*). I have had no success fiddling with these. Is there anybody out there having better ideas how to handle this?
Host Fedora 13, Vbox 3.2.10, guests Fedora 13/x86_64 and Fedora 14/i686