LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   subsys locked (https://www.linuxquestions.org/questions/linux-software-2/subsys-locked-327394/)

phyrko 05-26-2005 02:17 PM

subsys locked
 
Hi,

I have a problem with sshd. When I try to connect with ssh client I get

ssh: connect to host somedomain.com port 22: Connection refused

when I do

#/etc/init.d/sshd status
sshd dead but subsys locked

#/etc/init.d/sshd stop
Stopping sshd: [FAILED]

And

#ps au -C sshd

returns no sshd processes running.

Initial investigation leads me to

#rm /var/lock/subsys/sshd

which is fine, there is a file of that name and it has been deleted. Starting the daemon again leads to the same problem.

#ls /var/run/

has no sshd.pid to delete.

What is going on here?! Can anyone help?


All times are GMT -5. The time now is 12:48 AM.