Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4225
  • Last Modified:

This is in AIX5.3..We are getting this error Dependent module libcrypto.a(libcrypto.so.0.9.8) could not be loaded. Member libcrypto.so.0.9.8 is not found in archive

This is in AIX 5.3..we are getting this error..This is in AIX5.3..We are getting this error Dependent module libcrypto.a(libcrypto.so.0.9.8) could not be loaded. Member libcrypto.so.0.9.8 is not found in archive

with the application owner user id  when we are trying to do an ssh we are getting this error...but with other user id's I am able to do ssh..We cant change the env for that user as the application will stop working ..we  are running informatica on it..Please let me know as how this can be eliminated and ssh can be done through that user

i am tring to exchange keys with user on that server to other server..As I am not able to ssh..I am not able to exchange keys..let me know how it can be removed for that user

rpm -qa | egrep '(openssl|openssh|prng)'
openssl-0.9.6m-2
openssl-devel-0.9.7g-2
openssl-doc-0.9.7g-2
prngd-0.9.29-1
0
aixtutorial
Asked:
aixtutorial
  • 6
  • 6
1 Solution
 
woolmilkporcCommented:
Hi again,

this is clearly a LIBPATH problem.

I assume that the application user has a particular LIBPATH setting in their .profile (or in one of their own initialization files).

libcrypto comes with OpenSSL. Which OpenSSL implementation do you use? Which ssh implementation?

Normally libcrypto should be linked to /usr/lib from /opt/freeware/lib, but we should first try to find out where your libcrypto actually is.

Issue (as root):
find / -name "libcrypto*"
and tell us what you found.

Please don't confuse libcrypto with libcrypt - that's an AIX library!

Further, please log in as the application user and issue

echo $LIBPATH
which ssh

When logged in as root issue:

lslpp -l | grep -i ssl
lslpp -l | grep -i ssh
rpm -qa | grep -i ssh
rpm -qa | grep -i ssl


Please post the output of the above commands.

As a first check you could log in as the application user and issue

unset LIBPATH
and
ssh -V

Does it work now?

wmp
0
 
aixtutorialAuthor Commented:
Please find the below output
Could not load program ssh:
        Dependent module /informatica/PowerCenter8.6.0/server/bin/libcrypto.a(libcrypto.so.0.9.8) could not be loaded.
        Member libcrypto.so.0.9.8 is not found in archive
  and then I did
unset LIBPATH
ssh -V
OpenSSH_5.2p1, OpenSSL 0.9.8k 25 Mar 2009


and after  that I ran the commands


# lslpp -l | grep -i ssl
  gskjs.rte                 7.0.3.18  COMMITTED  AIX Certificate and SSL Java
  gskjt.rte                 7.0.3.18  COMMITTED  AIX Certificate and SSL Java
  gsksa.rte                 7.0.4.11  COMMITTED  AIX Certificate and SSL Base
  gskta.rte                 7.0.4.11  COMMITTED  AIX Certificate and SSL Base
  openssl.base            0.9.8.1102  COMMITTED  Open Secure Socket Layer
  openssl.license         0.9.8.1102  COMMITTED  Open Secure Socket License
  openssl.man.en_US       0.9.8.1102  COMMITTED  Open Secure Socket Layer
  pware53.openssl.rte        0.9.8.8  COMMITTED  OpenSSL 0.9.8h
  openssl.base            0.9.8.1102  COMMITTED  Open Secure Socket Layer
# lslpp -l | grep -i ssh
  openssh.base.client     5.2.0.5300  COMMITTED  Open Secure Shell Commands
  openssh.base.server     5.2.0.5300  COMMITTED  Open Secure Shell Server
  openssh.license         5.2.0.5300  COMMITTED  Open Secure Shell License
  openssh.man.en_US       5.2.0.5300  COMMITTED  Open Secure Shell
  openssh.msg.en_US       5.2.0.5300  COMMITTED  Open Secure Shell Messages -
  openssh.base.client     5.2.0.5300  COMMITTED  Open Secure Shell Commands
  openssh.base.server     5.2.0.5300  COMMITTED  Open Secure Shell Server
# rpm -qa | grep -i ssh
# rpm -qa | grep -i ssl
openssl-0.9.7l-1
openssl-devel-0.9.7l-1
openssl-doc-0.9.7l-1


But the libpath is needed for my applicaton to work.please let me know as how this can be done keeping the libpath and ssh to work at the same time
0
 
woolmilkporcCommented:
Please log in with a userid where ssh works and issue
echo $LIBPATH
and
ldd $(which ssh)

Now log in as the application user (where it doesn't work) and issue
echo $LIBPATH

Please post the output of all the commands above!




0
Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

 
aixtutorialAuthor Commented:

echo $LIBPATH /informatica/PowerCenter8.6.0/server/bin:/usr/java5_64/jre/bin:/usr/java5_64/jre/bin/classic:/usr/lib:/lib:/u00/app/oracle/lib:/u00/app/oracle/lib32:.

ssh

Could not load program ssh:
        Dependent module /informatica/PowerCenter8.6.0/server/bin/libcrypto.a(libcrypto.so.0.9.8) could not be loaded.
        File /informatica/PowerCenter8.6.0/server/bin/libcrypto.a is not an
          archive or the file could not be read properly.


ldd $(which ssh)

/usr/bin/ssh needs:
         /usr/lib/libc.a(shr.o)
         /informatica/PowerCenter8.6.0/server/bin/libcrypto.a(libcrypto.so.0.9.8)
ar: 0707-108 File /informatica/PowerCenter8.6.0/server/bin/libcrypto.a is not an archive file.
dump: /tmp/tmpdir401560/extract/libcrypto.so.0.9.8: 0654-106 Cannot open the specified file.
         /informatica/PowerCenter8.6.0/server/bin/libz.a(libz.so.1)
ar: 0707-108 File /informatica/PowerCenter8.6.0/server/bin/libz.a is not an archive file.
dump: /tmp/tmpdir401560/extract/libz.so.1: 0654-106 Cannot open the specified file.
         /unix
         /usr/lib/libcrypt.a(shr.o)





for the other user with which I am able to do ssh has this




didnt gave any output as libpath is not set for that user


echo $LIBPATH

and

ldd $(which ssh)

/usr/bin/ssh needs:
         /usr/lib/libc.a(shr.o)
         /usr/lib/libcrypto.a(libcrypto.so.0.9.8)
         /usr/lib/libz.a(libz.so.1)
         /unix
         /usr/lib/libcrypt.a(shr.o)
0
 
woolmilkporcCommented:
Yep, I see.

I had the same problem with some other third party software (not Informatica).

I think you can't tell me if /informatica/PowerCenter8.6.0/server/bin/libcrypto.a and libz.a have really to be present (are used by Informatica)?
If you could find out that it's not needed it would make things easier! Maybe you could ask an Informatica support person?

But anyway, the only solution I found in those days was this:

Write a script, put it into a common directory and set an alias "ssh" to it!

The script:

#!/bin/ksh
export OLIBPATH=$LIBPATH
unset LIBPATH
/usr/bin/ssh "$@"
export LIBPATH=$OLIBPATH
exit


Call this script e.g. "myssh", put it into e.g. /usr/local/bin (create this directory with "mkdir -p /usr/local/bin" if it's not there), and issue
chmod +x /usr/local/bin/myssh

Now add the line

alias ssh='/user/local/bin/myssh'

to $HOME/.profile of all users whose ssh doesn't work.

Logout and login again, and you will have a working ssh.

Please note that you will have to do the same with "scp" if you use this program!

wmp

1
 
aixtutorialAuthor Commented:
wmp Thanks a lot Sir..You are the master of AIX..It worked .I wanted to know what does woolmilkproc means anyway
0
 
woolmilkporcCommented:
See my EE profile!
0
 
woolmilkporcCommented:
See my EE profile!
0
 
aixtutorialAuthor Commented:
I am now able to ssh to other server and execute commands on the remote by

ssh user@host "ls -al"

but when i am trying to do scp it throws a weird error
scp -pr test user@host:/informatica  
it gives this error
Bad port 'r'

I am getting this error  even when I am doing scp -pr  or scp -pr or directly scp test  user@host:/informatica  

0
 
woolmilkporcCommented:
OK, sorry for not having been clear enough!

What I meant to say with "do the same with scp":

Write a second script for scp and set the "scp" alias to this script!

The "scp" script "myscp":

#!/bin/ksh
export OLIBPATH=$LIBPATH
unset LIBPATH
/usr/bin/scp "$@"
export LIBPATH=$OLIBPATH
exit


Put this script "myscp" into the same /usr/local/bin directory and issue
chmod +x /usr/local/bin/myscp

Now add another line

alias scp='/user/local/bin/myscp'

to $HOME/.profile of the concerned users.

Logout and login again, to make it work.

Sorry again for the mistakable wording!

wmp
0
 
aixtutorialAuthor Commented:
Thanks,,It worked.
0
 
aixtutorialAuthor Commented:
it worked
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 6
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now