1822302 Members
3647 Online
109642 Solutions
New Discussion юеВ

Re: ssh error

 
SOLVED
Go to solution
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.
Dennis Handly
Acclaimed Contributor

Re: ssh error

I don't have that extra level of directories in /opt/openssl on my 11.23 system:
openssl.OPENSSL-LIB: /opt/openssl/lib/hpux64/libcrypto.so.0
# openssl A.00.09.07-d.011 Secure Network Communications Protocol
Suraj K Sankari
Honored Contributor

Re: ssh error

Hi,

Yash if possible then re-install your open-ssh then check, if still problem is there then reboot the server.


Suraj
Dennis Handly
Acclaimed Contributor

Re: ssh error

>Suraj: re-install your open-ssh then check, if still problem is there then reboot the server.

Rebooting isn't likely to make symlinks magically appear or shlibs to be installed in the correct path.
Though reinstalling the correct openssh/openssl would do it.



T G Manikandan
Honored Contributor

Re: ssh error

Try this:

SHLIB_PATH=$SHLIB_PATH:/opt/openssl/lib/hpux64:/usr/lib/hpux64

#/opt/ssh/sbin/sshd
yash123
Regular Advisor

Re: ssh error

I have reinstalled openssl now ssh is working
Thanks All
yash123
Regular Advisor

Re: ssh error

thanks All