Operating System - HP-UX
1771232 Members
3026 Online
109004 Solutions
New Discussion

SSH not running and will not restart

 
NigelP
Visitor

Re: SSH not running and will not restart

sorry I don't have isof installed and I will not be able to install it

Denver Osborn
Honored Contributor

Re: SSH not running and will not restart

lsof would really help to identify what (if any) process is listening on port 22... to at least confirm there is already listener preventing sshd from starting, you can use netstat:

 

netstat -an | awk '/22.*LISTEN/'

 

That won't show us what process is listening on the port... just that there is already a listener on that port.

 

You might try telnet to the port to see if it reports what might be running.

 

telnet localhost 22

 

If you see an "SSH-version" string returned when you telnet, then sshd is running.  Trying to start it again on the same port would result in the bind error message logged to the syslog.

 

Still wouldn't explain why you aren't seeing sshd with 'ps -ef |grep sshd'

 

Good luck,

-denver

Steven E. Protter
Exalted Contributor

Re: SSH not running and will not restart

Shalom,

openssh will update with a simple swinstall command. No need to swremove the old.

Leaving things alone like this is a great way to fail security audits.

People in our job need to be a little more proactive than that. There are major security wholes being found in openssh on a regular basis and this is one of those areas where you want to update periodically.

diag:
netstat -an | grep ":22 "

Please post.

swlist -l bundle | grep OE
# Just wondering what operating environment you are running.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com