cancel
Showing results for 
Search instead for 
Did you mean: 

SSH for HP-UX 11.00

SOLVED
Go to solution
Charlie123
Frequent Advisor

SSH for HP-UX 11.00

Hi all,

I downloaded T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot

Here is my output, can anyone help?
Thanks a lot.

Charlie
---------------------------------------

awagshp 25 [/tmp/hp_ssh] #swlist -d -s ./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot
# Initializing...
# Contacting target
"./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot"...
ERROR: Could not contact host
"./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot". Make sure
the hostname is correct.
ERROR: More information may be found in the daemon logfile on this
target (default location is
./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot:/var/adm/sw/swagentd.log).

awagshp 26 [/tmp/hp_ssh] #swlist -s ./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot T1471AA
# Initializing...
# Contacting target
"./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot"...
ERROR: Could not contact host
"./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot". Make sure
the hostname is correct.
ERROR: More information may be found in the daemon logfile on this
target (default location is
./T1471AA_A.05.10.045_HP-UX_B.11.11_32_64.depot:/var/adm/sw/swagentd.log).

awagshp 27 [/tmp/hp_ssh] #uname -a
HP-UX awagshp B.11.00 E 9000/803 2008924973 8-user license
awagshp 28 [/tmp/hp_ssh] #

Then I downloaded SSH from here:
http://mirrors.develooper.com/hpux/downloads.html#hpux1100
As my host does not have bzip2, then I downloaded it as well. I run bzip2 it complained:
awagshp 86 [/tmp/hp_ssh] #bzip2
bzip2: Executable file incompatible with hardware.
awagshp 87 [/tmp/hp_ssh] #

Can any one direct me a clear way to set up SSH service in my old HP-UX 11.00?

Thanks a lot.

Charlie
48 REPLIES
Patrick Wallek
Honored Contributor

Re: SSH for HP-UX 11.00

The 11.11 version of SSH will NOT run on 11.0.

Go here:

http://mirrors.develooper.com/hpux/downloads.html

And look in the 11.0 section. You will see OpenSSH available for download there.
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Thanks Patric.
I downloaded openssh-5.1p1-11.00.sd.bz from where you directed, and downloaded bzip2-1.0.2-pa2.0 as well. I renamed it to bzip2, when I run bzip2, it complained the hardware incompatible.

Any further help?

Thanks a lot.
Charlie
Patrick Wallek
Honored Contributor

Re: SSH for HP-UX 11.00

What kind of hardware do you have?

What does the 'model' command return?

The version of 'bzip' you downloaded was built for a PA-RISC 2.0 architecture server.

It is possible you have a PA-RISC 1.1 server. Try downloading the version of bzip listed in the 10.20 category and see if that will work.
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Patric,

I used bzip2-1.0.2-pa1.1 ( for 10.20 ) on 11.00, it seemed OK. Then I tried installation but failed.

Look at these steps:

1:)
./bzip2-1.0.2-pa1.1 -d openssh-5.1p1-11.00.sd.bz
( The above cmd OK, I got openssh-5.1p1-11.00.sd )

2:)
swinstall -s ./openssh-5.1p1-11.00.sd

( I got:
a:) Checking CD-ROM ....
b:)
Could not contact host "./openssh-5.1p1-11.00.sd". Make sure the â â
â â â â â â hostname is correct.

3:)
awagshp 16 [/tmp/hp_ssh] #model
9000/803/D220
Is it PAR-RISC 1.1 or 2.0, I do not know.

Any clue?
Thanks a lot.
Charlie
smatador
Honored Contributor

Re: SSH for HP-UX 11.00

Hi,
Check first with this thread to resolve the host
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=22872
restart with swagentd -r, you swagent daemon
and another idea, assuming you openssh depot is in /tmp, try swinstall -s /tmp/openssh.xxx
Hope it helps to install openssh.
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi smatador,
Thanks for reply.

I did the following:
1:)
awagshp 61 [/etc] #nslookup awagshp
Using /etc/hosts on: awagshp

Name: awagshp
Address: 10.2.240.31

hosts file entries are fine.

2:)
/etc/nsswitch.conf gave me this:
hosts: files nis dns

4:) file /etc/rc.config.d/netconf has this entry:
HOSTNAME=awagshp

3:) I did this:
awagshp 65 [/etc] #/usr/sbin/swagentd -r
awagshp 66 [/etc] #

4:) I still got these:
awagshp 10 [/tmp/hp_ssh] #swinstall -s ./openssh-5.1p1-11.00.sd openssh

======= 04/09/09 10:04:34 EST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@awagshp".

* Beginning Selection
* Target connection succeeded for "awagshp:/".
ERROR: Could not contact host "./openssh-5.1p1-11.00.sd". Make sure
the hostname is correct.
* Source connection failed for
"./openssh-5.1p1-11.00.sd:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is
./openssh-5.1p1-11.00.sd:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 04/09/09 10:04:36 EST END swinstall SESSION (non-interactive)

awagshp 11 [/tmp/hp_ssh] #

I have tried a few times & still got this error. Can you help further?
Thanks a lot.
Charlie



Dennis Handly
Acclaimed Contributor
Solution

Re: SSH for HP-UX 11.00

>9000/803/D220 Is it PA-RISC 1.1 or 2.0?

Since it doesn't work, it isn't 2.0.
http://docs.hp.com/en/5992-2331/ch04s09.html
PA-7xxx D220/D230 discontinued June 1, 2000.
Patrick Wallek
Honored Contributor

Re: SSH for HP-UX 11.00

Install this way:

swinstall -s /tmp/hp_ssh/openssh-5.1p1-11.00.sd \*
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Patrick,

Thanks for reply.

Here is the output with your instruction.
-----------------------------------------
awagshp 76 [/tmp/hp_ssh] #swinstall -s /tmp/hp_ssh/openssh-5.1p1-11.00.sd \*

======= 04/09/09 13:15:45 EST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@awagshp".

* Beginning Selection
* Target connection succeeded for "awagshp:/".
* "awagshp:/tmp/hp_ssh/openssh-5.1p1-11.00.sd": This source is
a tape device.
* "awagshp:/tmp/hp_ssh/openssh-5.1p1-11.00.sd": Cannot open the
logfile on this target or source. Possibly the media is
read-only or there is a permission problem. Check the daemon
logfile and "/var/tmp/swagent.log" on this host for more
information.
* Source: /tmp/hp_ssh/openssh-5.1p1-11.00.sd
* Targets: awagshp:/
* Software selections:
openssh.openssh-CFG,r=5.1p1,a=HP-UX_B.11.00_PA,v=PROCURA
openssh.openssh-MAN,r=5.1p1,a=HP-UX_B.11.00_PA,v=PROCURA
openssh.openssh-RUN,r=5.1p1,a=HP-UX_B.11.00_PA,v=PROCURA
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
ERROR: "awagshp:/": The software dependencies for 1 products or
filesets cannot be resolved.
* The analysis phase failed for "awagshp:/".
* Analysis had errors.


* Beginning Execution
ERROR: "awagshp:/": 1 filesets were determined to be skipped in the
analysis phase.
* The execution phase failed for "awagshp:/".
* Execution had errors.


NOTE: More information may be found in the agent logfile (location
is awagshp:/var/adm/sw/swagent.log).

======= 04/09/09 13:16:29 EST END swinstall SESSION (non-interactive)

awagshp 77 [/tmp/hp_ssh] #
------------------------------------

It seemed to me the installation & execution both failed.

I need more help.
Thank you,
Charlie
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> NOTE: More information may be found [...]

It's hard to see from where I'm sitting.
Perhaps you could look?
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Steven, thanks for reply.

Here is the complete log after I tried again:
---------------------
======= 04/09/09 14:27:53 EST BEGIN install AGENT SESSION (pid=2278)
(jobid=awagshp-0254)

* Agent session started for user "root@awagshp". (pid=2278)

* Beginning Analysis Phase.
* Source: awagshp:/tmp/hp_ssh/openssh-5.1p1-11.00.sd
* Target: awagshp:/
* Target logfile: awagshp:/var/adm/sw/swagent.log
* Reading source for product information.
* Reading source for file information.
The prerequisite "openssl" for fileset
"openssh.openssh-RUN,r=5.1p1" cannot be successfully resolved.
ERROR: The dependencies for fileset "openssh.openssh-RUN,r=5.1p1"
cannot be resolved (see previous lines).
You must resolve the above dependencies before operating on
this fileset or change the "enforce_dependencies" option to
"false".
* Executing preDSA command.
NOTE: The used disk space on filesystem "/" is estimated to remain
unchanged.
This will leave 55087 Kbytes of available user disk space
after the installation.
NOTE: The used disk space on filesystem "/usr" is estimated to
remain unchanged.
This will leave 29402 Kbytes of available user disk space
after the installation.
NOTE: The used disk space on filesystem "/var" is estimated to
decrease by 1 Kbytes.
This will leave 33390 Kbytes of available user disk space
after the installation.

* Summary of Analysis Phase:
ERROR: Exclude openssh.openssh-RUN,r=5.1p1
ERROR: 1 of 3 filesets had Errors.
* 2 of 3 filesets had no Errors or Warnings.
ERROR: The Analysis Phase had errors. See the above output for
details.


* Beginning the Install Execution Phase.
* Filesets: 2
* Files: 18
* Kbytes: 290
* Installing fileset "openssh.openssh-CFG,r=5.1p1" (1 of 2).
* Installing fileset "openssh.openssh-MAN,r=5.1p1" (2 of 2).
* Running install clean command /usr/lbin/sw/install_clean.
NOTE: tlinstall is searching filesystem - please be patient
NOTE: Successfully completed

* Beginning the Configure Execution Phase.

* Summary of Execution Phase:
ERROR: Skipped (in analysis) openssh.openssh-RUN,r=5.1p1
ERROR: 1 of 3 filesets had Errors.
* 2 of 3 filesets had no Errors or Warnings.
ERROR: The Execution Phase had errors. See the above output for
details.


======= 04/09/09 14:28:23 EST END install AGENT SESSION (pid=2278)
(jobid=awagshp-0254)
-------------------------------

Any clue from above?

Thank you.
Charlie
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> Any clue from above?

> [...]
> The prerequisite "openssl" for fileset
> "openssh.openssh-RUN,r=5.1p1" cannot be successfully resolved.
> [...]

Apparently, you need to install OpenSSL
before you can install OpenSSH.
H.Merijn Brand (procura
Honored Contributor

Re: SSH for HP-UX 11.00

FYI, I just uploaded OpenSSL-0.9.8k + OpenSSH-5.2p1
Including the versions for HP-UX 10.20, which should be useable for 11.00 with PA7xxx CPU

The 11.00 builds are 32bit builds for PA-RISC2.0, so they won't run on your system.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: SSH for HP-UX 11.00

I couldn't resist the temptation again. Sorry

Would you be willing to try

http://www.cmve.net/~mbrand/openssl-0.9.8k+openssh-5.2p1-11.00-pa1.sd.bz

It is built with +DAportable, so should run on your PA7xxx

Please do not forget to assign points :)

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Torsten.
Acclaimed Contributor

Re: SSH for HP-UX 11.00

procura, you are too kind for this world ...

;-))

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
H.Merijn Brand (procura
Honored Contributor

Re: SSH for HP-UX 11.00

Well, this day I had to build those two for 9 systems anyway, so one more configuration could be added.

I hope I did it right though, because I used a different intermediate folder in order not to conflict with the build system itself, which is still a production box.

And HP-UX is sooooooo much easier and faster to do than those AIX machines! We hates those we hates those.

BTW, that distro also includes a libz-1.2.3.sl (and a symlink to it) as I didn't have a PA-1.1 version handy.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Procura,

Thanks for the reply.

I downloaded/unzipped your package and tried but got this:

awagshp 10 [/tmp/hp_ssh] #swinstall -s ./openssl-0.9.8k+openssh-5.2p1-11.00-pa1.sd openssh

======= 04/21/09 10:20:56 EST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@awagshp".

* Beginning Selection
* Target connection succeeded for "awagshp:/".
ERROR: Could not contact host
"./openssl-0.9.8k+openssh-5.2p1-11.00-pa1.s". Make sure the
hostname is correct.
* Source connection failed for
"./openssl-0.9.8k+openssh-5.2p1-11.00-pa1.s:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is
./openssl-0.9.8k+openssh-5.2p1-11.00-pa1.s:/var/adm/sw/swagentd.log).

* Selection had errors.



======= 04/21/09 10:20:58 EST END swinstall SESSION (non-interactive)

awagshp 11 [/tmp/hp_ssh] #

Output from /var/adm/sw/swagentd.log:

* Started install agent on "/" for root@awagshp, pid=3897,
04/21/09 10:20:56 EST
* Agent pid=3897 completed. 04/21/09 10:20:58 EST
~

Not sure what I did wrong, can you help further?
Thanks a lot.

Charlie
Dennis Handly
Acclaimed Contributor

Re: SSH for HP-UX 11.00

>Not sure what I did wrong, can you help further?

You need an absolute path:
swinstall -s $PWD/openssl-0.9.8k+openssh-5.2p1-11.00-pa1.sd openssh
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Dennis,
Thanks for reply.

Here is my installation after I used full path:

awagshp 5 [/tmp/hp_ssh] #swinstall -s /tmp/hp_ssh/openssl-0.9.8k+openssh-5.2p1-11.00-pa1.sd openssh

======= 04/21/09 14:03:23 EST BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@awagshp".

* Beginning Selection
* Target connection succeeded for "awagshp:/".
*
"awagshp:/tmp/hp_ssh/openssl-0.9.8k+openssh-5.2p1-11.00-pa1.sd":
This source is a tape device.
*
"awagshp:/tmp/hp_ssh/openssl-0.9.8k+openssh-5.2p1-11.00-pa1.sd":
Cannot open the logfile on this target or source. Possibly
the media is read-only or there is a permission problem.
Check the daemon logfile and "/var/tmp/swagent.log" on this
host for more information.
* Source:
/tmp/hp_ssh/openssl-0.9.8k+openssh-5.2p1-11.00-pa1.sd
* Targets: awagshp:/
* Software selections:
openssh.openssh-CFG,r=5.2p1,a=HP-UX_B.11.00_PA,v=PROCURA
openssh.openssh-MAN,r=5.2p1,a=HP-UX_B.11.00_PA,v=PROCURA
openssh.openssh-RUN,r=5.2p1,a=HP-UX_B.11.00_PA,v=PROCURA
+ openssl.openssl-CFG,r=0.9.8k,a=HP-UX_B.11.00_PA,v=PROCURA
+ openssl.openssl-INC,r=0.9.8k,a=HP-UX_B.11.00_PA,v=PROCURA
+ openssl.openssl-MAN,r=0.9.8k,a=HP-UX_B.11.00_PA,v=PROCURA
+ openssl.openssl-RUN,r=0.9.8k,a=HP-UX_B.11.00_PA,v=PROCURA
* A "+" indicates an automatic selection due to dependency or
the automatic selection of a reference bundle.
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "awagshp:/".
* Analysis succeeded.


* Beginning Execution
* The execution phase succeeded for "awagshp:/".
* Execution succeeded.


NOTE: More information may be found in the agent logfile (location
is awagshp:/var/adm/sw/swagent.log).

======= 04/21/09 14:04:35 EST END swinstall SESSION (non-interactive)

awagshp 6 [/tmp/hp_ssh] #
--------------------------------------------

It seemed that the installation & execution was OK at this stage ( great leap ) except the installation log file was a problem, hopefully this is not a problem at all.

When I tried to use a SSH client to access the host I got "Connection Refused" error.

Please indicate what next I should do to make SSH work.

Thanks a lot.

Charlie

Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> Please indicate what next I should do to
> make SSH work.

Doesn't this stuff come with documentation?

Run the program (sshd)? I know nothing, but
I'd assume that the installation procedure
left a control script in /sbin/init.d (or
somewhere) with a link to it in /sbin/rc?.d
(or somewhere), and so it should get started
when you boot the system, or when you run the
control script manually:

/sbin/init.d/<script_name> start

There are probably a bunch of configuration
files which may need some adjustment, too,
and some key files to create.

http://www.openssh.com/
Steven E. Protter
Exalted Contributor

Re: SSH for HP-UX 11.00

Shalom,

There is another option. Later versions of 11.00 Core OS and application CD's might have a fully working version of ssh in depot format for 11.00.

If you have a software contract on another system, HP support might be convinced to open up access to their FTP archives.

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
OldSchool
Honored Contributor

Re: SSH for HP-UX 11.00

you're going to need to configure and start the sshd on the destination server. If I recall, the config files are found in /etc/ssh or /opt/etc/ssh. You may have to write a start up script as well.

If you don't already have a random number software installed, you may need to add something like PRNGD as well...
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi guys, thanks a lot for the reply.

After the installation, I checked a few directories referenced in this thread & found no names as "*ssh*", used "ps -ef|grep ssh" gave me nothing else.

Can I have some clear instruction on where the ssh server was installed & how to make it work?

Thanks a lot.
Charlie
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> After the installation, I checked a few
> directories referenced in this thread &
> found no names as "*ssh*", used
> "ps -ef|grep ssh" gave me nothing else.

To us non-psychics, "a few directories" is
not very informative. Your "Connection
Refused" complaint already told us that the
sshd was not running, so the "ps" result is
not amazing.

Knowing nothing, I'd expect that a home-made
OpenXXX kit would get put into
/opt/ or /usr/local/.
How hard have you looked? No one said
anything during "the installation"? There's
no documentation?

On an 11.11 system, HP's things seem to go
into /usr/sbin, /usr/bin, /opt/ssh/etc, and
so on, and there are "man" pages for the
programs.