ssh and scp not working

Dear All,

whenever i try the command ssh , it is giving the below error.

ld.so.1: ssh: fatal: relocation error: file /usr/bin/ssh: symbol SUNWcry_installed: referenced symbol not found
Killed

For SCP also the same error is coming.

Pl reply me if you have answers.

Rj

Sounds like it is picking up an incorrect version of libcrypto (openssl library).
Check to see if you have LD_LIBRARY_PATH set?
Also can you run "ldd /usr/bin/ssh" and post the results ?

Hi ,

I am posting my results of ldd -d /usr/bin/ssh

 ldd -d /usr/bin/ssh
        libsocket.so.1 =>        /lib/libsocket.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libz.so.1 =>     /usr/lib/libz.so.1
        libcrypto.so.0.9.7 =>    /prod/shared/app/dctm/fulltext/fast/libcrypto.so.0.9.7
        libgss.so.1 =>   /usr/lib/libgss.so.1
        libc.so.1 =>     /lib/libc.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libcmd.so.1 =>   /lib/libcmd.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        symbol not found: SUNWcry_installed             (/usr/bin/ssh)
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,SPARC-Enterprise-T5220/lib/libc_psr.so.1
        /platform/SUNW,SPARC-Enterprise-T5220/lib/libmd_psr.so.1

Pl see the above output there is some error in it.

Kindly clarify..

Rgds
rj

---------- Post updated at 12:45 AM ---------- Previous update was at 12:44 AM ----------

I also have my LD_LIBRARAY_PATH set

/prod/shared/app/dctm/dfcshared/dfc:/prod/shared/app/dctm/dfcshared/java/1.5.0_21/jre/lib/sparc/server:/prod/shared/app/dctm/dfcshared/java/1.5.0_21/jre/lib/sparc/lib/client:/prod/shared/app/dctm/dfcshared/java/1.5.0_21/lib:/prod/shared/app/dctm/product/6.5/bin:/prod/shared/app/dctm/fulltext/fast:/prod/shared/app/dctm/dfcshared/java/1.5.0_21/jre/lib/i386:/prod/shared/app/dctm/product/6.5/fusion:/prod/shared/app/oracle/product/10.2.0/client_1/lib

OK, try "unset LD_LIBRARY_PATH" and re-run the ssh command - see if that fixes it

Hi I got it set..I added the path of /usr/sfw/lib where libcrypto.so.0.9.7 resides in the front of the LD_LIBRARY_PATH....that solved the issue.