1834275 Members
3533 Online
110066 Solutions
New Discussion

ssh reboots server

 
Craig Pritchard
New Member

ssh reboots server

I recenlty installed secure shell for HP-UX and all dependencies:

T1471AA_A.03.61.002_HP-UX_B.11.00_32+64.depot, PHCO_26089 libpam + libpam_unix cumulative patch, gettext 0.12, libiconv 1.9, openssl 0.9.7b, zlib 1.1.4.
The installation for all depots went fine and the sshd daemon starts okay.
However, when I try and connect from any client PC to the HP-UX server, the server hangs and then reboots itself, which is quite annoying! I have openssh running on on a Redhat 9.0 server and don't have any problems connecting, from client pc's or the HP-UX server.
I ran in debug mode sshd -d -d :

# cd /opt/ssh/sbin
# sshd -d -d
debug2: read_server_config: filename /opt/ssh/etc/sshd_config
debug1: sshd version OpenSSH_3.6.1p2
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
Cannot bind any address.

So I then tried to use a different port - sshd -d -p 9999, and connecting to the server from a client pc using port 9999 : ssh hp-server -p 9999
I managed to get a prompt, but as soon as I type in my password the server reboots!!

Please help!!!
9 REPLIES 9
Stefan Farrelly
Honored Contributor

Re: ssh reboots server

I think you have a conflict here - if you install HP's version of SSH, product T1471AA, it includes ALL dependencies in it - you DO NOT need to install separately zlib, openssl, libiconv etc, etc. swremove them. I would remove everything, SSH and all the other stuff you installed, then ONLY reinstall T1471AA - thats all you need. Thats all we use.

If you install openssh from the HPUX Porting and Archive centre (http://hpux.cs.utah.edu) then you need to install all those dependcies too, but not if you use HP's version.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Craig Pritchard
New Member

Re: ssh reboots server

I have removed all the other dependencies and ssh, then reinstalled just the T147AA depot, but I still get the same problem.
Thanks, craig
Jeff Schussele
Honored Contributor

Re: ssh reboots server

Hi Craig,

I would put the sshd daemon in debug mode
sshd -d (or even -ddd for higher debug mode).
This will only allow one connection, but at least you may see what's going on.
Also you can put the client in debug mode as well:
ssh -v (-vvv)
To get some insight from that end as well.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Craig Pritchard
New Member

Re: ssh reboots server

Thanks very much for your help.

I have run both client and server in debug mode and still get the same problem. I have noticed that the server does not reboot when I try and login as root . root login is disabled on our sever apart from on the console (as it should be) but at least the system seems to authenticate the root password because the /etc/motd is displayed just before the message saying access denied. The debug mode didn't seem to throw up any obvious errors, but then again I'm not really sure what I should be looking for?

help very much appreciated.
cp
Rahul Mehta_1
New Member

Re: ssh reboots server

Is your server multihomed?

if it is so, put all the ip address in /etc/hosts and try ,once again..

Thanks


Rahul
Craig Pritchard
New Member

Re: ssh reboots server

My server is multihomed, all the addresses are in /etc/hosts file, but still the server crashes!
Cheryl Griffin
Honored Contributor

Re: ssh reboots server

According to http://www.software.hp.com/portal/swdepot/displayInstallInfo.do?productNumber=T1471AA 11.00 requires PHCO_28425 and PHCO_25527.

PHCO_25527 was replaced by PHCO_26089.
These two patches have many dependencies as well. (This is all required patches including dependencies.)
PHCO_21187, PHCO_23651, PHCO_23791, PHNE_28567,
PHCO_24189, PHCO_26089, PHCO_26111, PHCO_28425,
PHCO_28630, PHKL_18543, PHKL_20016, PHKL_20202,
PHKL_22589, PHKL_22677, PHKL_23226, PHKL_23409,
PHKL_23842, PHKL_27980, PHKL_28150, PHKL_28766,
PHKL_29434, PHNE_21767, PHNE_27902


"Downtime is a Crime."
Elmar P. Kolkman
Honored Contributor

Re: ssh reboots server

Do you have lsof on your server? It is strange that port 22 is already in use, so perhaps you need to investigate what is using it first. Perhaps another version of sshd which gives conflicts in shared libraries ?

Try running lsof -i :22
Every problem has at least one solution. Only some solutions are harder to find.
Craig Pritchard
New Member

Re: ssh reboots server

It works!! I did indeed need all the patches that I hadn't installed. I didn't have enough space on /var, so used lvextend/extendfs. Created the space, installed the patches and hey presto - no reboot!!

Diolch yn fawr i pawb!!

Thanks for all your help!