Skip navigation

ssh connections dropping

48494 Views 36 Replies Latest reply: Oct 16, 2013 5:55 AM by MacTaiwan RSS
1 2 3 Previous Next
blist Calculating status...
Currently Being Moderated
Aug 16, 2011 6:55 AM

since upgrading to lion ssh connections constantly drop with:

Write failed: Broken pipe

 

this did not happen in snow leopard, nor does it happen on win7 pro in parralels

apple terminal, zoc, and securecrt all experience the same thing

 

did apple change an idle timeout setting or something?

MacBook Pro, Mac OS X (10.7)
  • Tony T1 Level 6 Level 6 (8,125 points)
    Currently Being Moderated
    Aug 16, 2011 7:21 AM (in response to blist)

    blist wrote:

     

    since upgrading to lion ssh connections constantly drop with:

    Write failed: Broken pipe

     

     

    What program is running though ssh?  rsync? scp?

  • nsouto Calculating status...
    Currently Being Moderated
    Aug 17, 2011 8:36 AM (in response to blist)

    Hello,

     

    I too am having the same issue, Write failed: Broken pipe on my ssh connections independent of server. This only happening since I upgraded to Lion, at first I thought it was my Internet Connection acting up, but my colleague here noticed the same thing only after upgrading to Lion everyone else still using Snow Leopard is fine.

     

    I have just upgraded to 10.7.1 and still happening.

     

    I also have under .ssh two files:

     

    config and ssh_config with the contents:

     

    Host *

        ServerAliveInterval 120

        ServerAliveCountMax 3

     

    I have used just the file config on Snow Leopard and tried to use ssh_config in Lion to see if it resolved the issue but nothing changed...

     

    P.S. - I'm using iTerm2 and was using it with Snow Leopard as well,. my friend just uses the Terminal that comes with OSX.

     

    Thanks for any help on this.

  • devimovs Calculating status...
    Currently Being Moderated
    Aug 22, 2011 3:43 PM (in response to blist)

    I have the same problem!!!

    Write failed: Broken pipe

  • Mr.Harry Calculating status...
    Currently Being Moderated
    Aug 22, 2011 5:19 PM (in response to blist)

    This Write failed: Broken pipe thing is driving me nuts. As I ssh into the linux server to to all of my work, whenever I try to display something a little bit graphics intensive, the ssh session become unresponsive and drop with the given error.

     

    Would it be a problem with X11.app ? I have tried various version of OpenSSH (5.3 - 5.82p) but they're all the same

  • Mr.Harry Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 26, 2011 6:02 AM (in response to blist)

    So I keep googling hoping someone will answer but non did. I actually installed virtualbox and have Xubuntu running then SSH and everything works fine

     

    So long story short - I keep googling and came to some forums post about Write failed: Broken pipe and apparently this could be because some logging issue from syslogd. You can do something to the com.apple.syslogd.plist as seen here http://dans.im/blog/archives/8 What I did was just move the whole file to the trash can. I think the ssh connection stop dropping now.

  • devimovs Level 1 Level 1 (0 points)
    Currently Being Moderated
    Aug 26, 2011 6:52 AM (in response to Mr.Harry)

    Firefox + fire ssh plugin

  • capaho Level 4 Level 4 (3,650 points)
    Currently Being Moderated
    Aug 26, 2011 7:12 AM (in response to blist)

    A lot of people have reported wifi problems since upgrading to Lion.  A brief interruption in the network connection of even a few milliseconds could disrupt an SSH connection.  It could be that your SSH problem is actually a network connectivity problem.

  • joseidrobo Calculating status...
    Currently Being Moderated
    Sep 3, 2011 4:32 PM (in response to blist)

    I have the same issue. Using Real VNC viewer I got the error too.

  • BobHarris Level 6 Level 6 (12,510 points)
    Currently Being Moderated
    Sep 8, 2011 5:47 AM (in response to blist)

    Stupid question.  Is it possible that the DHCP IP address lease is turning over to quickly AND each time it is getting a new IP address.

     

    If the Mac were getting a new IP address each time the DHCP lease needed to be renewed, that would break any TCP connection.

     

    As an experiment, can anyone having this problem try switching to a manually assigned IP address and see if the problem continues?

     

    Or write a script to capture the "ifconfig" information once a minute, and then see if the IP address has changed between when the ssh (or RealVNC) connection was made and when it received SIGPIPE.

     

    #!/usr/bin/env bash

    while sleep 60

    do

    ifconfig

    done >ifconfig.history.txt

     

    again, this is just a wild guess.

    iMac, Mac OS X (10.6.7), 27" i7, MacBook, MacMini, etc...
  • Acideous Calculating status...
    Currently Being Moderated
    Sep 13, 2011 1:15 PM (in response to capaho)

    This issue is unrelated to wifi.  I turned my wifi off and have been hooked up via ethernet and I still am seeing broken pipes when my sessions go idle for just 10 minutes.

  • BobHarris Level 6 Level 6 (12,510 points)
    Currently Being Moderated
    Sep 13, 2011 1:21 PM (in response to Acideous)

    Could still be DHCP lease expirations and new IP addresses being assigned that would break a TCP connection.

  • thelongmile Level 1 Level 1 (10 points)
    Currently Being Moderated
    Sep 14, 2011 10:10 AM (in response to blist)

    I know this isn't particularly helpful but I'm another one with this issue. I practically live in SSH on my Mac and this is a real dealbreaker for me, I'm about to try the plist fix that someone mentioned above. Hopefully I'll have success here!

1 2 3 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.