cancel
Showing results for 
Search instead for 
Did you mean: 

ssh error

SOLVED
Go to solution
yash123
Regular Advisor

ssh error

Hi All,

ssh login is not allowing on one machine.
getting following error
/usr/lib/hpux32/dld.so: Unable to find library 'libcrypto.so.0'

kindly help

Regards
Yash
35 REPLIES
Ganesan R
Honored Contributor

Re: ssh error

Hi,

Are you using openssh?
Best wishes,

Ganesh.
yash123
Regular Advisor

Re: ssh error

# swlist | grep -i SecureShell
SecureShell A.05.10.008 HP-UX Secure Shell

when I login to console i got the follwing mesaage

- - - - - - - - - - Prior Console Output - - - - - - - - - -

INIT: Command is respawning too rapidly.
Will try again in 5 minutes.
Check for possible errors.
id:cim1 "/opt/wbem/lbin/cimserverd"

INIT: Command is respawning too rapidly.
Will try again in 5 minutes.
Check for possible errors.
id:cim1 "/opt/wbem/lbin/cimserverd"

- - - - - - - - - - - - Live Con
yash123
Regular Advisor

Re: ssh error

when try to start ssh
# /opt/ssh/sbin/sshd
/usr/lib/hpux64/dld.so: Unable to find library 'libcrypto.so.0'.
Killed
T G Manikandan
Honored Contributor

Re: ssh error

openssh depends on openssl and this library comes along with openssl.

Please also install openssl.
T G Manikandan
Honored Contributor

Re: ssh error

Ganesan R
Honored Contributor
Solution

Re: ssh error

Hi,

I don't find this library file on our servers where HP secure shell is running.

If you unable to find the library file, better you to reinstall the HP ported Secure shell by downloading from the link provided above.
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: ssh error

Hi Yash,

Check this thread. Someone mention this.

>>>if you have /usr/lib/libssl.so.0.9.6 on your system just create a symbolic link to it (as root):

ln -s /usr/lib/libssl.so.0.9.6 /usr/lib/libssl.so.2

do the same for libcrypto if required:

ln -s /usr/lib/libcrypto.so.0.9.6 /usr/lib/libcrypto.so.2

worked fine for me, nessus runs. <<<<


http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1237207044703+28353475&threadId=136408


Best wishes,

Ganesh.
Matti_Kurkela
Honored Contributor

Re: ssh error

First, the "INIT: Command is respawning too rapidly" messages are related to cimserverd process, not sshd.

Cimserverd has some known bugs, are you up to date with patches?

What is your HP-UX machine model? (In other words, what does the "model" command say?)

By the version number of the SecureShell package, I can tell you are probably running HP-UX 11.31.

If you are running some other version of HP-UX, someone might have force installed a wrong version of the HP SSH package. A package intended for older versions of HP-UX might work in a newer version, but not vice versa. If you are unsure, please run "uname -a" to verify the HP-UX version.

To see where the system expects to find the libcrypto.so.0 file, run "ldd /opt/ssh/sbin/sshd". It will list all the libraries sshd is going to use, and the paths it uses to find them.

MK
MK
yash123
Regular Advisor

Re: ssh error

Hi,
# ldd /opt/ssh/sbin/sshd
libpam.so.1 => /usr/lib/hpux64/libpam.so.1
libdl.so.1 => /usr/lib/hpux64/libdl.so.1
Unable to find library 'libcrypto.so.0'.

I have tired to reinstall
SecureShell_A.05.10.008_HP-UX_B.11.31_IA_PA.depot
But still same issue
# which ssh
/usr/bin/ssh
# ssh
/usr/lib/hpux32/dld.so: Unable to find library 'libcrypto.so.0'.
Killed
#

regards
Yash
yash123
Regular Advisor

Re: ssh error

Could anybody help to resolve this.
Will award points.......


Thanks
Yash
T G Manikandan
Honored Contributor

Re: ssh error

Yash,

Can you follow the steps pointed by Ganesan above to create links.

yash123
Regular Advisor

Re: ssh error

Manikandan,

Thanks
But libssl.so.0.9.6 file is not present.
I have reinstalled T1471AA.
bit same result
T G Manikandan
Honored Contributor

Re: ssh error

can you check if the openssl package is present

swlist |grep -i openssl
yash123
Regular Advisor

Re: ssh error

# swlist | grep -i openssl
OpenSSL A.00.09.08g.001 Secure Network Communications Protocol
#

Yash
T G Manikandan
Honored Contributor

Re: ssh error

what is the output of

usr/lib/libssl.*
T G Manikandan
Honored Contributor

Re: ssh error

Sorry I mean

ls -l /usr/lib/libssl.*
Dennis Handly
Acclaimed Contributor

Re: ssh error

>T G Manikandan: ll /usr/lib/libssl.*

Integrity shlibs (for sshd) should be in /usr/lib/hpux64/.
T G Manikandan
Honored Contributor

Re: ssh error

can you do a

swlist -l file -a openssl
to check whether the files have are installed.
yash123
Regular Advisor

Re: ssh error

Hi
# ls -l /usr/lib/hpux64/libssl*
lrwxr-xr-x 1 root sys 32 Feb 25 15:55 /usr/lib/hpux64/libssl.a -> /opt/openssl/lib/hpux64/libssl.a
lrwxr-xr-x 1 root sys 33 Feb 25 15:55 /usr/lib/hpux64/libssl.so -> /opt/openssl/lib/hpux64/libssl.so
lrwxr-xr-x 1 root sys 35 Feb 25 15:55 /usr/lib/hpux64/libssl.so.0 -> /opt/openssl/lib/hpux64/libssl.so.0
lrwxr-xr-x 1 root sys 35 Feb 25 15:55 /usr/lib/hpux64/libssl.so.1 -> /opt/openssl/lib/hpux64/libssl.so.1

Regards
Yash
T G Manikandan
Honored Contributor

Re: ssh error

Also , can you please check for libcrypto.so.0 please?
yash123
Regular Advisor

Re: ssh error

# ll /usr/lib/hpux64/libcrypto*
lrwxr-xr-x 1 root sys 35 Feb 25 15:55 /usr/lib/hpux64/libcrypto.a -> /opt/openssl/lib/hpux64/libcrypto.a
lrwxr-xr-x 1 root sys 36 Feb 25 15:55 /usr/lib/hpux64/libcrypto.so -> /opt/openssl/lib/hpux64/libcrypto.so
lrwxr-xr-x 1 root sys 38 Feb 25 15:55 /usr/lib/hpux64/libcrypto.so.0 -> /opt/openssl/lib/hpux64/libcrypto.so.0
lrwxr-xr-x 1 root sys 38 Feb 25 15:55 /usr/lib/hpux64/libcrypto.so.1 -> /opt/openssl/lib/hpux64/libcrypto.so.1
#
T G Manikandan
Honored Contributor

Re: ssh error

can you set the
SHLIB_PATH=$SHLIB_PATH:/opt/openssl/lib/hpux64:/usr/lib/hpux64

and start /etc/init.d/sshd restart

and try

ssh localhost
Dennis Handly
Acclaimed Contributor

Re: ssh error

>T G Manikandan: can you set the
SHLIB_PATH=$SHLIB_PATH:/opt/openssl/lib/hpux64:/usr/lib/hpux64

This shouldn't be needed because of the symlinks in the default path.
yash123
Regular Advisor

Re: ssh error

Hi Experts,
Still not resolved the issue.
If anybody can solve this I will assign 10 points to all his suggestions.

Regards
Yash