1832920 Members
3173 Online
110048 Solutions
New Discussion

SSH for HP-UX 11.00

 
SOLVED
Go to solution
Dennis Handly
Acclaimed Contributor

Re: SSH for HP-UX 11.00

# swlist -l file openssh

Will show you all of the files.

Re: SSH for HP-UX 11.00

># swlist -l file openssh
>
>Will show you all of the files

... which I just ran on the depot that Merijn provided, revealing:

# openssh 5.2p1 openssh
# openssh.openssh-CFG OpenSSH configuration files
openssh.openssh-CFG: /etc/rc.config.d/opensshd
openssh.openssh-CFG: /sbin/init.d/openssh
openssh.openssh-CFG: /usr/local/etc/moduli
openssh.openssh-CFG: /usr/local/etc/ssh_config
openssh.openssh-CFG: /usr/local/etc/sshd_config


amongst other files...

so I gues running:

/sbin/init.d/openssh start

will probably get you going...

HTH

Duncan

I am an HPE Employee
Accept or Kudo
H.Merijn Brand (procura
Honored Contributor

Re: SSH for HP-UX 11.00

If all installed OK, the most informative messages you get from

# /usr/local/sbin/sshd

which is essentially what

# /sbin/init.d/openssh start

will do in the background for you

You might be missing /var/empty or a ssh user

If you have nothing at all, a basic OpenSSL setup might look like

# cd /usr/local/etc/openssh
# /usr/local/bin/ssh-keygen -t dsa -N "" -f ssh_host_dsa_key
# /usr/local/bin/ssh-keygen -t rsa -N "" -f ssh_host_rsa_key
# /usr/local/bin/ssh-keygen -t rsa1 -N "" -f ssh_host_key

# echo 'sshd:*:22:3::/var/empty:/sbin/sh' >>/etc/passwd
# mkdir /var/empty
# chmod 755 /var/empty

# /usr/local/sbin/sshd

And then test

# ssh ${USER}@localhost

BTW, I still don't see a single post in this thread where you assigned points to

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

Re: SSH for HP-UX 11.00

Hi all,
Thanks all for replies. I should have submitted points earlier as I did not really find the link to do so earlier. I have done now. The replies are all of great help.

The cmd: swlist -l file openssh
gave me many things similiar to Duncan posted.

I also found the sshd by "find / -name "*ssh*" -print. It gave me many such as:
/etc/rc.config.d/opensshd
....
/sbin/init.d/openssh
....
etc.

Then when I tested, I got this:

awagshp 27 [/usr/local/etc] #/usr/local/bin/ssh-keygen -t dsa -N "" -f ssh_host_dsa_key
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libz.sl
/usr/lib/dld.sl: No such file or directory


I also got this:
awagshp 32 [/] #/sbin/init.d/openssh start
/usr/lib/dld.sl: Can't open shared library: /usr/lib/libz.sl
/usr/lib/dld.sl: No such file or directory
/sbin/init.d/openssh[69]: 4364 Abort(coredump)
EXIT CODE: 134
awagshp 33 [/] #


Again I can see this:
awagshp 33 [/] #cd /usr/lib
awagshp 34 [/usr/lib] #ls -l libz.sl
libz.sl not found

awagshp 35 [/usr/lib] #ls -l dld.sl
-r-xr-xr-x 1 bin bin 102400 Jun 17 1998 dld.sl
awagshp 36 [/usr/lib] #

I did not go further for keys stuff since /usr/lib/libz.sl is absent.

I am looking for more help.

Thanks a lot.
Charlie
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> I am looking for more help.

You might try a Google or Forum search for
keywords like, say:

hp-ux libz.sl

Something will probably lead you to a kit
which would provide this prerequisite.

You might look to see if you already have it
somewhere under /usr/local.
Dennis Handly
Acclaimed Contributor

Re: SSH for HP-UX 11.00

>I did not go further for keys stuff since /usr/lib/libz.sl is absent.

You need to also install zlib-1.2.3.sl:
http://mirrors.develooper.com/hpux/libz-1.2.3-11.00-pa2.0.tbz
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi STeven & Dannis, thanks a lot.

I downloaded the tbz file as indicated and installed into the directories, libz-1.2.3.sl is the original copy after untarred, libz.sl is its copy.

See these:

awagshp 29 [/usr/lib] #!ls
ls -l libz*
-rwxrwxrwx 1 root sys 102400 Apr 23 14:37 libz-1.2.3.sl
-rwxrwxrwx 1 root sys 102400 Apr 23 14:31 libz.sl
awagshp 30 [/usr/lib] #cd /lib

awagshp 31 [/lib] #!ls
ls -l libz*
-rwxrwxrwx 1 root sys 102400 Apr 23 14:37 libz-1.2.3.sl
-rwxrwxrwx 1 root sys 102400 Apr 23 14:31 libz.sl

Then I got further errors, see these:

awagshp 33 [/lib] #cd /usr/local/etc
( no openssh directory under )

awagshp 34 [/usr/local/etc] #/usr/local/bin/ssh-keygen -t dsa -N "" -f ssh_host_dsa_key
/usr/lib/dld.sl: Bad system id for shared library: /usr/lib/libz.sl
/usr/lib/dld.sl: Exec format error
IOT trap (core dumped)
awagshp 35 [/usr/local/etc] #id
uid=0(root) gid=3(sys) groups=0(root),1(other),2(bin),4(adm),5(daemon),6(mail),7(lp),20(users)

awagshp 36 [/usr/local/etc] #/sbin/init.d/openssh start
/usr/lib/dld.sl: Bad system id for shared library: /usr/lib/libz.sl
/usr/lib/dld.sl: Exec format error
/sbin/init.d/openssh[69]: 4493 Abort(coredump)
EXIT CODE: 134
awagshp 37 [/usr/local/etc] #

The key error msg was "Bad system id for shared lib..."

My log in id was "root".

Please provide further help. It seemed we made a lot progress, after this is completed I will summarize here for sharing.

Thanks again.

Charlie
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

I usually build things like this from source
kits. That way, I seldom see complaints like
"Executable file incompatible with hardware"
or "Exec format error".

http://zlib.net/
Dennis Handly
Acclaimed Contributor

Re: SSH for HP-UX 11.00

>dld.sl: Bad system id for shared library: /usr/lib/libz.sl
>dld.sl: Exec format error

It looks like this is the previous issues, PA2.0 code on your old PA1.1 box.
Do: file /usr/lib/libz.sl
Dennis Handly
Acclaimed Contributor

Re: SSH for HP-UX 11.00

>dld.sl: Bad system id for shared library: /usr/lib/libz.sl
>dld.sl: Exec format error

Oops, the URL even says pa2.0.

Did you see H.Merijn's comment:
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.
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Thanks.
See this:

awagshp 4 [/lib] #file /usr/lib/libz.sl
/usr/lib/libz.sl: PA-RISC2.0 shared library -not stripped
awagshp 5 [/lib] #

I do not know what it means. Please...

Regards. ->Charlie

Re: SSH for HP-UX 11.00

I expect the problem you now have is that the zlib library you have downloaded is again a PA2.0 rather than PA1.1 library, which won't run on your crusty old hardware.

Luckily if you read back through Merijn's posts you will see thet he already included a PA1.1 copy of zlib in the distribution of ssh/ssl he provided previously (it's actually in the openssl product)

Repeat the "swlist -l file" commands on the openssl product and you should see you have a copy of libz.sl in /usr/local/lib

So just add /usr/local/lib to your SHLIB_PATH and try again (you should probably swremove the PA2.0 zlib you just installed as well)

HTH

Duncan

I am an HPE Employee
Accept or Kudo
H.Merijn Brand (procura
Honored Contributor

Re: SSH for HP-UX 11.00

OK, here is a libz.sl for HP-PA 1.1

# cd /usr/lib
# wget http://www.cmve.net/~mbrand/libz-1.2.3-11.00-pa11.sl
# ln -s libz-1.2.3-11.00-pa11.sl libz.sl
# cd /usr/local/lib
# ln -s /usr/lib/libz.sl .

AND PLEASE DO ASSIGN POINTS TO THE ANSWERS. (ALL ANSWERS)

Enjoy. Have FUN! H.Merijn [ just browsing through older posts ]
Enjoy, Have FUN! H.Merijn
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Procura,

Thanks a lot. I have been away for quite a while and was unable to access the internet.

I tried to get the lib from your latest indication, but I failed because this machine is not linked to the internet, and it does not have wget command.

Please provide another channel for me to download the much needed library. I will summarize here.

Thanks a lot.
Charlie
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> [...] this machine is not linked to the
> internet, [...]

Then how did you download all that other
stuff you said that you downloaded?

> [...] it does not have wget command.

Wget is available on the Internet, too.
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Thanks for reply.

I downloaded into my Windows Box, then FTP to the HP Unix box in the internal network. The HP Unix box was cut off from access to internet.
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> I downloaded into my Windows Box, then FTP
> to the HP Unix box [...]

Ok. So why can't you do that again?
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Steve,

I did that by copying/pasting the full URL to my browser, but I got this:

"
De opgevraagde pagina bestaat niet op deze webserver !
Mail de link naar onderstaand adres ter correctie.
"

Is this French or anything? And English is even not my 1st language.

Thank you, please indicate again.
Steven Schweda
Honored Contributor

Re: SSH for HP-UX 11.00

> Is this French or anything? [...]

Looks like Dutch (".nl").

Try the e-mail link at the bottom of:

http://www.cmve.net/~mbrand/

?
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Steven & procura,

Thanks for so many replies, I still can not find the library, can you provide further help?

Thanks a lot.
Charlie
H.Merijn Brand (procura
Honored Contributor

Re: SSH for HP-UX 11.00

Mea Culpa, Mea maxima maxima culpa!
I noted the name wrong (drop the -11.00 part, as pa11 is not bound to 11.00 or 10.20)

http://mirrors.develooper.com/hpux/libz-1.2.3-pa11.sl

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

Re: SSH for HP-UX 11.00

Hi all,

I downloaded & link the new posted library, it seemed to be a big leap.

See this:
#/usr/local/bin/ssh-keygen -t dsa -N "" -f ssh_host_dsa_key
PRNG is not seeded.

WHat is wrong?
Thanks.
Charlie
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Also:

awagshp 24 [/usr/local/etc] #/sbin/init.d/openssh start
PRNG is not seeded
EXIT CODE: 255
awagshp 25 [/usr/local/etc] #
Charlie123
Frequent Advisor

Re: SSH for HP-UX 11.00

Hi Guys,
I got the random number generator and sshd running, but once I used my terminal program putty to try to connect to the host by SSH port, it seemed to me the host was brought down. Any connections ( such as telnet ) went down. The system seemed to reboot, I had to manually restart the sshd as indicated in this thread.

( When I tried SSH for the 1st time, it prompted the key cache etc. after that now more prompt mesage ).

Need more help.
Thanks a lot.
Charlie