1752692 Members
5593 Online
108789 Solutions
New Discussion юеВ

Re: SSH for HP-UX 11.00

 
SOLVED
Go to solution
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.
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.