I have the broken-pipe problem while using ssh to another Linux server (after idling for about 5-10 mins):

Write failed: Broken pipe

Interestingly, I started to have this problem after upgrading my computer to Ubuntu 10.04, while the Linux server remains unchanged. I also tried to ssh from an OpenSUSE 11.2 machine, and it doesn't have any problem ...

Any clue?

link|improve this question
Same problem , after idling ssh returns Write Filed Broken pipe. – Maxwell Aug 26 '10 at 12:40
feedback

migrated from stackoverflow.com Jun 22 '10 at 20:31

This question came from our site for professional and enthusiast programmers.

1 Answer

I think it could be a case of routers/firewalls/etc forcibly disconnecting your idle sessions.

Try using a 'keepalive' when you connect

ssh -o TCPKeepAlive=yes

Note: there's definitely several other ways to set up keepalives on an ssh connection, server side or client side. Above is a straightforward client-side one.

hth

link|improve this answer
1  
also try playing with the ServerAliveInterval option - ssh -o ServerAliveInterval=30 – amir75 Jun 21 '10 at 22:40
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.