Operating System - HP-UX
1833163 Members
3611 Online
110051 Solutions
New Discussion

installation procedure ssh

 
John McDen
Regular Advisor

installation procedure ssh

I downloaded openssh from
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/openssh-3.1p1/

The file downloaded
openssh-3.1p1-sd-11.00.depot.gz
openssl-0.9.6-sd-11.00.depot.gz
zlib-1.1.4-sd-11.00.depot.gz

and gunziped the files and when I run swinstall and give the full path of the file location and it say

Cannot establish a lock on this target because of an external error (for example, the lock file could not be created).
Please if somebody could walk me thur the installation procedure..

I am installing it on 11.0

New to HP
3 REPLIES 3
John McDen
Regular Advisor

Re: installation procedure ssh

I got it installed...

Thanks but is there any config to be done ??

New to HP
Sridhar Bhaskarla
Honored Contributor

Re: installation procedure ssh

Your sshd may not start as your system will be missing host_key. If it gives out error, then you need to generate it.

Use the following command..

#/wherever_ssh/bin/ssh-keygen -t rsa1 -f /wherever_ssh/etc/ssh_host_key -N ""

Then start sshd.

If you haven't done already, you may have to read some key management stuff that is available by exploring www.openssh.org

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Michael Tully
Honored Contributor

Re: installation procedure ssh

Hi,

Hope this helps:

How to Install and Configure Openssh (simple method)


Pre-requisite: You must install a product called ???zlib??? prior to attempting to install ???openssh??? or the installation will fail.

Run the ???swinstall??? interactive program to install the ???zlib??? filesets.
# cp /opt/zlib/include/zlib.h /usr/include
# cp /opt/zlib/include/zconf.h /usr/include
# cp /opt/zlib/lib/libz.a /usr/lib

Run the ???swinstall??? interactive program to install ???openssh???.

Once the two products have been installed a small amount of configuration will still be necessary. As ???root??? run the following commands.

# /opt/openssh2/bin/ssh-keygen ???t rsa1 ???f /opt/openssh2/etc/ssh_host_key ???N ??????
# /opt/openssh2/bin/ssh-keygen ???t rsa ???f /opt/openssh2/etc/ssh_host_rsa_key ???N ??????
# /opt/openssh2/bin/ssh-keygen ???t dsa ???f /opt/openssh2/etc/ssh_host_dsa_key ???N ??????

Start the background daemon on the local host to make sure that the keys have been generated successfully.

# /opt/openssh2/sbin/sshd &

Set up the automatic startup of ???sshd???
You can get a copy of these files from the ssh source code and create the links.


# ln -s /sbin/init.d/sshd.rc /sbin/rc2.d/S110sshd
# ln -s /sbin/init.d/sshd.rc /sbin/rc1.d/K890sshd

As your own user id generate a key for ???ssh??? from you own home directory:

e.g.
$ cd /home/fred
$ /opt/openssh2/bin/ssh-keygen
Enter file and press return (/home/fred/.ssh/identity)
Enter Passphrase (not required, just press return)

Make a directory on the server at the other end to contain the authority key. This file is the same as just generated as your own user id except that is must be called /home/fred/.ssh/authorized_keys

Before this key will work, the destination server also needs to have the ???zlib??? and ???openssh??? filesets installed and the ???sshd??? daemon running as per the above procedures.
Anyone for a Mutiny ?