SSH Installation

Hi,

One of our six servers is incapable of SSH.

I get the error below while running SSH:

# ssh
exec(): 0509-036 Cannot load program ssh because of the following errors:
        0509-150   Dependent module libz.a(libz.so.1) could not be loaded.
        0509-022 Cannot load module libz.a(libz.so.1).
        0509-026 System error: A file or directory in the path name does not exist.
#

I'm trying to reinstall ssh, open ssl, rpm packages, etc. However, on the part of the document im trying to follow:

Installing openSSH on 5.1, 5.2, and 5.3
At 5.1, 5.2, and 5.3, the installation of openssh itself is in installp format, but all the prerequisites (including openssl) can be installed using the same rpm -i commands (using the same 4.3.3. rpm packages). The installp format package can be downloaded from the following site:http://sourceforge.net/projects/openssh-aix After installing the prerequisites using the following commands,

Downloading the rpm packages.
The rpm packages can be downloaded from the following website: http://www.ibm.com/servers/aix/products/aixos/linux/download.html

  1. rpm -i zlib-1.1.4-3.aix4.3.ppc.rpm
  2. rpm -i prngd-0.9.23-3.aix4.3.ppc.rpm AIX 5.2 uses /dev/urandom
  3. rpm -i openssl-0.9.7d-1.aix5.1.ppc.rpm
  4. rpm -i openssl-devel-0.9.7d-1.aix5.1.ppc.rpm

I can't download the RPM packages from the ibm site. --> http://www.ibm.com/servers/aix/products/aixos/linux/download.html

Do I need to reinstall the RPM? how do i check if i already have the RPM packages needed? Do you know where i could get these RPM packages?

Thanks. Super. Really.

lslpp -L | grep -i packagename 

should be showing you if you have zlib installed or not - by the looks of it you haven't ...

Try to download from here or take it from the Linux toolbox cd if you have one

Regards
zxmaus

Hi,

Thanks again for attending to my inquiries. This is what i gathered from the lslpp command you gave:

zlib 1.2.3-4 C R The zlib compression and
decompression library.
(/bin/rpm)
zlib-devel 1.2.3-4 C R Header files and libraries for
developing apps which will use
zlib. (/bin/rpm)

and i checked the other servers with working ssh and the result of the lslpp is the same... should i reinstall it? how do i reinstall and what packages?

what other packages do i have to check besides the zlib?

maybe your libpath variable is wrong defined ? Compare with your working boxes ...

check for openssl and the ssh package themselves. Maybe you need to reinstall the zlib and than add the location of the libraries to your LIBPATH variable

Regards
zxmaus

1 Like

Hi,

thanks for the package download link.

I reinstalled the package by using rpm -i --force <package>.

and then i started the ssh service by startsrc -s sshd.

Now the ssh works!!! no more security problems.