ssh not working after Daylight Savings, Java, and security updates

I woke up this morning to see that there were 3 software updates available, and so I installed all three. No problems with the install, and after restarting everything appeared to be working fine. Then I opened the Terminal and tried to ssh to another machine and got a "Segmentation Fault" error.

This seg fault happens with both terminal and X11, and over both wireless and ethernet connections. Pings still work, as do other UNIX TCP utilities (I tried telnet and ftp), so the problem seems to affect just SSH.

Has anyone else experienced this problem?

Macbook core2duo 2Ghz, Mac OS X (10.4.8)

Posted on Feb 16, 2007 11:38 AM

Reply
27 replies

Feb 17, 2007 11:15 AM in response to scottj75

I have the same problem. Anybody has an answer to solve that?

Here the verbose output from ssh (I deleted all the computer names etc.):

debug1: Reading configuration data /etc/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to [] port 22.
debug1: Connection established.
debug1: identity file /Users/<user>/.ssh/identity type -1
debug1: identity file /Users/<user>/.ssh/id_rsa type -1
debug1: identity file /Users/<user>/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.8.1p1 Debian-8.sarge.4
debug1: match: OpenSSH_3.8.1p1 Debian-8.sarge.4 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.2
debug2: fd 3 setting O_NONBLOCK

Robert
Segmentation fault


Mac OS X (10.4.8)

Feb 17, 2007 9:11 PM in response to spingineer

Looking around the web, I've seen that this problem has cropped up before this update. I've seen people complain that it happened to them after the airport update in early February. But it definitely hit me after the Feb 15 updates.

See http://forums.macosxhints.com/showthread.php?t=67983

spingineer, is your Mac Mini a PPC or Intel chip?

What's strage is that it seems to be sporadic, and not affecting everyone after every single update. I just hope Apple releases a fix soon, because this is a huge bug for anyone who does remote computing.

Feb 20, 2007 4:14 PM in response to Eric Salathe

Well, I just tried this on a co-worker's computer (a Macbook CoreDuo with same OS version) who just installed the 3 Feb 15th updates, and his SSH works fine.

I've also found another thread where somebody had the same problem after upgrading to 10.4.7.

http://forums.macrumors.com/archive/index.php/t-213307.html

One anecdotal observation I see so far is that the problem with SSH seems to hit people who have the Developer Tools installed (as I do). Would that make any sense?

-Scott

Feb 26, 2007 2:41 PM in response to Eric Salathe

OK, here's the problem and fix.

Something gets messed up with Kerberos during some Apple patches. This is clearly established by the vast user experiences posted around the web related both the the latest (Feb 2007 10.4.8) updates and earlier updates. When Kerberos is messed up, various communications are broken. There are specific reports regarding ssh and afp.

The fix is to go back to an earlier version of the affected software that works correctly. In this case, I went back to the 10.4.8 Combo Updater <http://www.apple.com/support/downloads/macosx1048comboupdateintel.html> and used Pacifist <http://www.charlessoft.com/> to install just the Kerberos.framework (/System/Library/Frameworks/). Doing this fixed segmentation faulting both in ssh and afp.

Elsewhere, I have seen the suggestion to also reinstall /System/Library/CoreServices/{Kerberos.app,KerberosAgent.app}. However, it seems more likely that the framework is at fault and those apps are calling the framework.

So, to be clear: ssh worked fine on my MacBook Pro until the last security update. After which, it terminated with segmentation fault. I reinstalled Kerberos.framework from the 10.4.8 Combo Updater, which fixed ssh. (As well as a lingering afp issue from earlier updates.) Note also that non-Apple builds of ssh (MacPorts or Fink), which do not use Kerberos.framework, work fine.

-Eric

MacBook Pro Mac OS X (10.4.8)

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ssh not working after Daylight Savings, Java, and security updates

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.