AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
Expand all | Collapse all

Using "expect" 5.34-8 on AIX 5.3 TL3; can't run "ssh" from expect "

  • 1.  Using "expect" 5.34-8 on AIX 5.3 TL3; can't run "ssh" from expect "

    Posted Mon January 26, 2009 12:13 PM

    Originally posted by: SystemAdmin


    On a production server, I try to run ssh from within "expect" language and get this:
    spawn ssh -l itimmgr ServerName.ibm.com
    Could not load program ssh:
    Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so.0.9.8) could not be loaded.
    Member libcrypto.so.0.9.8 is not found in archive

    Oh- production is running openssl- 0.9.7d-2

    It works fine on home 43p:
    AIX 5.3 TL5; expect 5.42.1-3, and openssl 0.9.7d-1.

    Where would I find libcrypto.so.0.9.8 (and would it go in the /opt/freeware/lib dir??)?
    There are multiple copies of this file- "libcrypto.so.0.9.7" on the production server (as well as on my home 43p).
    What is causing the prodcution server to need xxxx.9.8 instead of xxxx.9.7??

    Thanks!


  • 2.  Re: Using "expect" 5.34-8 on AIX 5.3 TL3; can't run "ssh" from expect "

    Posted Tue January 27, 2009 09:40 AM

    Originally posted by: SystemAdmin


    Hi notes386,

    libcrypto.so.0.9.8 is part of the openssl.base.0.9.8 package. The library file is /usr/lib/libcrypto.a.

    You have to search the latest version here:

    https://www14.software.ibm.com/webapp/iwm/web/reg/pick.do?source=aixbp

    Regards,
    Andres Cordoba


  • 3.  Re: Using "expect" 5.34-8 on AIX 5.3 TL3; can't run "ssh" from expect "

    Posted Tue January 27, 2009 09:58 AM

    Originally posted by: SystemAdmin


    Thanks!! Late yesterday, I found someone who had experienced the same error and have opened a ticket to get the AIX Admins to assist. Basically, we need them to remove the libcrypto.a file from /opt/freeware/lib (where "expect" runs from) and setup a sym link to the most current version that ssh uses (found in /usr/lib). I was going to post this answer after I verified for my case, but it worked for him, so hoping it works for me as well... ;-)
    Have a great week!