1847710 Members
5134 Online
110265 Solutions
New Discussion

Re: OpenSSH install

 
Anthony Alvarez_1
Occasional Contributor

OpenSSH install

I need to install OpenSSH on HP-UX 10.20.
http://hpux.cs.utah.edu/hppd/hpux/Networking/Admin/openssh-3.1p1/

The system already has a C compiler and make installed.

Do I have to install GNU make-3.79.1 to install OpenSSH?
http://hpux.cs.utah.edu/hppd/hpux/Gnu/make-3.79.1/

If I install GNU make-3.79.1, will it "blow out" the make
already installed on the system?

I have never installed a package on UNIX. Is there some
information available on exactly how to do this?

What is the meaning of "Installation Tree"?
Example: Installation Tree: "/opt/make"

I look forward to hearing from you. Thank you.

==

Anthony Alvarez, Webmaster
aalvarez@panasonicatlanta.com
Panasonic Wireless Design Center (MMCD)
1225 Northbrook Pkwy, #2-352, Suwanee, GA 30024
+1 770 338 6176 [Office] - 6238 [Fax]
http://www.panasonic-wireless.com

PGP Fingerprint: 9A2C E2D6 1D8E 96B4 CC57 9268 380B 00A6 A92D 9586
4 REPLIES 4
Kevin Wright
Honored Contributor

Re: OpenSSH install

there's tons of options you have if you are building from source. There's also plenty of other packages you need to install Openssh, make sure you have all of them first. Installation tree is the directory where the files will be installed to..But like I said, if you build from source, you can configure that.

read the README files, take your time and good luck.
V. V. Ravi Kumar_1
Respected Contributor

Re: OpenSSH install

hi Anthony,

u down load openssh for 10.20 from the link u specified. u also need to download zlib and openssl. zlib is available at the same location where openssh is available. openssl u can download from openssl.org

gunzip both openssh and zlib and u can use swinstall to install the both.

the best thing is to search for openssh in forums.

hope this helps
ravi
Never Say No
Deshpande Prashant
Honored Contributor

Re: OpenSSH install

HI
This is how I did it.
--
You can install the open ssh from HP software porting center, in SD format.
Download following from HP porting center in SD format
1. binutils
2. gcc
3. openssl
4. zlib
5. openssh

Then install above packages in same sequence using swinstall.
#swinstall -s binutils
#swinstall -s gcc
#swinstall -s openssl
#swinstall -s zlib
#swinstall -s openssh

copy the zlibs to include dir.
#cp /opt/zlib/include/zlib.h /usr/include
#cp /opt/zlib/include/zconf.h /usr/include
#cp /opt/zlib/lib/libz.a /usr/lib

Change mode of openssh binary
#chmod 4711 /opt/openssh2/bin/ssh

Copy the config files.
#cp /opt/openssh2/etc/moduli.out /opt/openssh2/etc/moduli
#cp /opt/openssh2/etc/ssh_config.out /opt/openssh2/etc/ssh_config
#cp /opt/openssh2/etc/ssh_prng_cmds.out /opt/openssh2/etc/ssh_prng_cmds
#cp /opt/openssh2/etc/sshd_config.out /opt/openssh2/etc/sshd_config

Generate KEYS
#/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 dsa1 -f /opt/openssh2/etc/ssh_host_dsa_key -N ""

Start SSHD
/opt/openssh2/sbin/sshd &

#--

Thanks
Prashant Deshpande.


Take it as it comes.
Craig Rants
Honored Contributor

Re: OpenSSH install

Here are my notes for compiling the software. You are able to overcome some problems with the openssh depot such as $PATH not including /opt/openssh/bin ...

- Install Perl5 ( only required for initial compile )
gzip -d /tmp/perl-5.6.1-sd-11.00.depot.gz
swinstall -s `hostname`:/tmp/perl-5.6.1-sd-11.00.depot \*

- Compile openssl
cd /tmp
gzip -d < openssl-0.9.6.tar.gz | tar xvf -
cd openssl-0.9.6
export PATH=/opt/perl5/bin:$PATH
./config --openssldir=/usr/local/openssl shared
make
make test
make install
cd ..
sh shlib/hpux11-cc.sh (had to create/modify this script with openssl)
sh shlib/hpux10-cc.sh (had to create/modify this script with ssl)

- Compile zlib
cd /tmp
gzip -d < zlib-1.1.4.tar.gz | tar xvf -
cd zlib-1.1.4
./configure -s --prefix=/usr
make test
make install

- Compile openssh
cd /tmp
gzip -d < openssh-3.1p1.tar.gz | tar xvf -
cd openssh-3.1p1
(11 version)
./configure --prefix=/opt/openssh2 --sysconfdir=/opt/openssh2/etc --with-pam
--with-ssl-dir=/usr/local/openssl/lib --with-default-path=/bin:/usr/bin:/opt/openssh2/bin
(10 version)
./configure --prefix=/opt/openssh2 --sysconfdir=/opt/openssh2/etc
--with-ssl-dir=/usr/local/ssl/lib --with-default-path=/bin:/usr/bin:/opt/openssh2/bin
make
make install

- Configure ssh and sshd (Already done in the tar, just for information )
vi /etc/openssh2/etc/sshd_config (verify these settings)
Port 22
HostKey /opt/openssh2/etc/ssh_host_key /etc for 10.20
KeyRegenerationInterval 3600
SyslogFacility AUTH
LogLevel INFO
PermitRootLogin yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
RhostsAuthentication no
IgnoreRhosts yes
IgnoreUserKnownHosts no
PasswordAuthentication yes
PermitEmptyPasswords no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
PrintMotd yes
PrintLastLog yes
Subsystem sftp /opt/openssh2/libexec/sftp-server

vi /etc/openssh2/etc/ssh_config (verify these settings)
ForwardAgent yes
ForwardX11 yes

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut