1753804 Members
7472 Online
108805 Solutions
New Discussion юеВ

Re: ssh error

 
SOLVED
Go to solution
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


Dennis Handly
Acclaimed Contributor

Re: ssh error

>Still not resolved the issue.

What does this show?
ll -L /usr/lib/hpux64/libcrypto*

Has OpenSSL installed the shlibs in /opt/openssl/lib/hpux64/?
yash123
Regular Advisor

Re: ssh error

Hi,
# ll -L /usr/lib/hpux64/libcrypto*
/usr/lib/hpux64/libcrypto.a not found
/usr/lib/hpux64/libcrypto.so not found
/usr/lib/hpux64/libcrypto.so.0 not found
/usr/lib/hpux64/libcrypto.so.1 not found

Has OpenSSL installed the shlibs in /opt/openssl/lib/hpux64/?
shlibs is not installed
# pwd
/opt/openssl/0.9.8/lib/hpux64
# ll
total 10208
-r-xr-xr-x 1 bin bin 5220352 Nov 16 2007 libcrypto.so.1

Regards
Yash
Dennis Handly
Acclaimed Contributor

Re: ssh error

# ll -L /usr/lib/hpux64/libcrypto*
/usr/lib/hpux64/libcrypto.a not found

You have found the cause. Your versions of SecureShell and OpenSSL don't go together. Either because they are incompatible or because of some packaging problems??

You could do as T G Manikandan suggested and use:
export LD_LIBRARY_PATH=/opt/openssl/0.9.8/lib/hpux64
Then do that /etc/init.d/sshd restart.

Also, are /opt/openssl/lib/hpux??/ empty?
yash123
Regular Advisor

Re: ssh error

Hi,
Thanks for the input
I have did
# export LD_LIBRARY_PATH=/opt/openssl/0.9.8/lib/hpux64
# /opt/ssh/sbin/sshd
/usr/lib/hpux64/dld.so: Unable to find library 'libcrypto.so.0'.
Killed

still same issue
Also, are /opt/openssl/lib/hpux??/ empty?
lib is under 0.9.7 and 0.9.8
# pwd
/opt/openssl
# l
0.9.7, 0.9.8

is it 2 versions of openssl installed?
# swlist | grep -i openssl
OpenSSL A.00.09.08g.001 Secure Network Communications Protocol


Regards
Yash
Dennis Handly
Acclaimed Contributor

Re: ssh error

# export LD_LIBRARY_PATH=/opt/openssl/0.9.8/lib/hpux64

If this fails, it is likely because LD_LIBRARY_PATH isn't enabled. You can check with "chatr /opt/ssh/sbin/sshd".

>lib is under 0.9.7 and 0.9.8

This means the symlinks in /usr/lib/hpux?? are broken. Either you change those or you select one version of openssl and add more synlinks:
ln -s ../0.9.8/lib /opt/openssl/lib

You might be able to see what's going wrong by using:
swlist -l file | fgrep /libcrypto.

This should show which fileset has that shlib and who is adding those symlinks.