SSHD Processes Using 100% CPU

Two Processes, both SSHD make up over 95% of my cpu utilization making my Leopard server run at 100% cpu utilization all the time. I kill them and they come back in 1/2 hour or so. Any ideas?

Xserver g5 x2, Mac OS X (10.5)

Posted on Dec 5, 2007 8:26 AM

Reply
114 replies

Apr 7, 2008 6:29 AM in response to Worsham

We've got what seems to be one of the same problems as in this thread. sshd hangs during login and then the process sits consuming nearly an entire CPU (on a 8 cpu Xserve) - 10.5.2 - problem was evident on 10.5.0 and 10.5.1 but seems worse now.

I built Portable OpenSSH 5.0p1 with PAM support and it does the same thing. It seems to get hung up in PAM processing:

...
debug3: mm sshpamrespond
debug3: mm requestsend entering: type 52
debug3: mm sshpamrespond: waiting for MONITOR ANS_PAMRESPOND
debug3: mm request_receiveexpect entering: type 53
debug3: mm requestreceive entering
debug3: monitor_read: checking request 52
debug3: mm answer_pamrespond
debug2: PAM: sshpam_respond entering, 1 responses
debug3: ssh msgsend: type 6
debug3: mm requestsend entering: type 53
debug3: mm requestreceive entering
debug3: mm sshpamrespond: pam_respond returned 1
debug3: mm sshpamquery
debug3: mm requestsend entering: type 50
debug3: mm sshpamquery: waiting for MONITOR ANS_PAMQUERY
debug3: mm request_receiveexpect entering: type 51
debug3: mm requestreceive entering
debug3: monitor_read: checking request 50
debug3: mm answer_pamquery
debug3: PAM: sshpam_query entering
debug3: ssh msgrecv entering
...

It would be nice if the sshd worked so we could get some development done.

I filed a bugreport in any event.

Apr 11, 2008 11:50 AM in response to Worsham

Something interesting happened to me: I activated SACL for SSH and allowed a staff group and the admin user... and ssh started working like a charm ! Before that, only admin could connect through ssh and all other attempts by regular users blocked sshd.

Even more interesting, even after I went back to the original SACL settings (i.e. no access control at all), ssh was still working properly.

After a very basic search, it appears that /etc/aliases.db and /etc/postfix/aliases have been modified at the time I activated SACL.

Could someone try this ?

May 7, 2008 11:42 PM in response to Worsham

Seeing this though on my Macbook Pro (running 10.5 non-server, but has same behavior). How's this for strange -- if I'm connected to the server using Remote Desktop, and:
1. The sshd process is pegging at 100%
2. And then I kill the sshd process
3. And then I try to open the Terminal (it'll hang)
4. And leave the terminal at 99% cpu
5. THEN try ssh'ing in...it works.

However, killing the Terminal process and then trying to ssh in again triggers the problem once more.

May 12, 2008 10:57 PM in response to Worsham

I was having the same problem, apparently related to failed ssh logins. I'd get one or two new runaway sshd processes within 5-10 minutes, then up to five more within the next half hour.

Ever since I turned off IPv6 on that interface it hasn't recurred (knock on wood,) even though I'm still getting regular dictionary login attempts from a botnet (sshdfilter has slowed this down immensely, btw.)

HTH.

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.

SSHD Processes Using 100% CPU

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