Solved sshd stuck on restart

Have a problem with sshd restarting. It hangs....

Code:
# /etc/rc.d/sshd restart
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 22158
Code:
# ps auxw |grep sshd
root      22158   0.0  0.0   21068   5048  -  Ss   02:43        0:00.01 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups (sshd)
root      35938   0.0  0.1   21508   8872  -  Ss   10:59        0:00.21 sshd: root@pts/0 (sshd)
root      36263   0.0  0.0   12812   2088  0  S+   11:19        0:00.00 grep sshd
Code:
^C
# ps auxw |grep 22158
root      22158   0.0  0.0   21068   5048  -  Is   02:43        0:00.01 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups (sshd)


This is what was causing the inability to ssh to this server for quite a while.

Any idea what is causing this?
Thanks.
 
Not sure if this issue is actually solved yet but, since cacti won't connect to mysql and root can connect to mysql -u cacti -p cacti and then reading some posts about cacti failing to connect to mysql db, deinstalled mysql80. Once mysql80 was uninstalled, running
Code:
# /etc/rc.d/sshd restart
Performing sanity check on sshd configuration.
Stopping sshd.
Waiting for PIDS: 80450.
Performing sanity check on sshd configuration.
Starting sshd.

So far this morning, have run the above command about 10x without failure.
Trying now to install mysql or mariadb and see a LOT of warnings about VULNERABILITIES. So my guess is something was injected into mysql that screwed sshd at least from starting/running.
 
Back
Top