1748244 Members
3733 Online
108760 Solutions
New Discussion юеВ

sshd hang

 
Ahmed_58
Regular Advisor

sshd hang

dears,
we are running SSH A.05.30.008, on HPUX 11.23 and its hang with no error messages in syslog.log!!, restart sshd demon become OK,
any idea where to check for the cause of the hang?

the following action taken to restart sshd:
>/sbin/init.d/secsh stop
kill: 3636: The specified process does not exist.
Unable to stop HP-UX Secure Shell
>/sbin/init.d/secsh start
HP-UX Secure Shell started
5 REPLIES 5
SoorajCleris
Honored Contributor

Re: sshd hang

Hi,

your ssh process was not existing, thats what the message says.

anyway, if you dont have any log entry nothing can be done now.

You must have tried to run ssh in debugg mode. try it nexttime.

Regards,Sooraj
"UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity" - Dennis Ritchie
Ahmed_58
Regular Advisor

Re: sshd hang

Dear Sooraj,

I think SSH was running, because the message says kill 3636...

Ahmed


Viktor Balogh
Honored Contributor

Re: sshd hang

no, it wasn't running, see this message:

>/sbin/init.d/secsh stop
kill: 3636: The specified process does not exist.

****
Unix operates with beer.
Matti_Kurkela
Honored Contributor

Re: sshd hang

The /sbin/init.d/secsh script found the PID 3636 by looking at the PID file /var/run/sshd.pid.

Normally sshd removes this file when it exits. The fact that the PID file remained while the sshd process was gone (as reported by the kill command within the secsh script) indicates sshd did not exit normally.

Possible causes:
- admin mistake (e.g. someone with root privileges typed "kill -9 3636" by mistake)

- bug in sshd (in which case there is likely a core dump file around somewhere... you can determine which program produced a core dump by using the "file" command on it)

- resource exhaustion: if the system has been so out of swap/RAM that there are "fork failed" or "Could not fork" error messages in the kernel message buffer (dmesg), some daemons like sshd may have died as a side effect.

MK
MK
Ahmed_58
Regular Advisor

Re: sshd hang

Dears,
thanks for your replay, problem reported to HP for investigation, we also planning to install the latest SSH version.

Ahmed