From: Les Bell
Here's the steps involved, taken pretty much from the README and INSTALL files. Notice that OpenSSL wants to live in /usr/local/ssl, and that's where just about everything else expects to find it; it's not worth trying to force it to live somewhere else.
Prerequisites: You will need OpenSSL
and Zlib. The current release of zlib is 1.1.3, which is
supplied as part of OpenLinux eDesktop, but you might want to
update other releases, which come with zlib 1.0.2 (use
ls -l /usr/lib/libz*to see what you have).
First, visit http://www.openssl.org and download OpenSSL 0.9.5a as openssl-0.9.5a.tar.gz. Next, you can either obtain zlib as source, from ftp.cdrom.com/pub/infozip/zlib/zlib.tar.gz or in RPM from from ftp.calderasystems.com/pub/contrib/RPMS/libc6/zlib-1.1.3-1col.i386.rpm. You can then visit http://www.openssl.com and download openssh-2.1.0.tar.gz.
Next, compile and install OpenSSL:
tar xzvf /path/to/openssl-0.9.5a.tar.gz
You will need to manually add the man pages to the man path in (strikethrough: /etc/man.conf):
To install zlib:
From an rpm, give the command: rpm -i zlib-1.1.3-1col.i386.rpm It should install in a few seconds.
If you want to install it from the source tar.gz file:
tar xzvf /path/to/zlib.tar.gz
make install prefix=/usr
To install OpenSSH 2.1.0:
tar xzvf /path/to/openssh-2.1.0.tar.gz
This puts the ssh config files into the /etcdirectory, rather than the default, which is under /usr/localsomewhere.
Now you can go ahead and use ssh-keygen to create your host keys and user keys, and you're in business.
-- Les http://www.lesbell.com.au