SSH issue

Facing a SSH issue while creating passwordless login.

unix>  ./create_ssh
 
In the program, you will be asked and providing
        1. SSH private key filename (twice)
        2. key passcode (twice)
 
Enter private key filename: id_ss81dev

ld.so.1: ssh-keygen: fatal: relocation error: file /usr/bin/ssh-keygen: symbol SUNWcry_installed: referenced symbol not found
./create_ssh[35]: 18497 Killed
cat: cannot open id_ss81dev.pub
 advx81d 19292     1   0 12:50:13 ?           0:00 ssh-agent
 advx81t 17394     1   0 12:46:07 ?           0:00 ssh-agent
SSH agent is running, re-priming now...
Agent pid 18513
ld.so.1: ssh-add: fatal: relocation error: file /usr/bin/ssh-add: symbol SUNWcry_installed: referenced symbol not found
./create_ssh[63]: 18515 Killed

getting the below error

OS details
# Operating System
# SunOS XXXXXX 5.10 Generic_144488-10 sun4v sparc SUNW,Sun-Fire-T200
OS=SOLARIS

---------- Post updated at 11:52 AM ---------- Previous update was at 11:22 AM ----------

The exact error is due to this line

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

What does

ldd $(whence ssh-keygen)

say? You seem to load a wrong version of libcrypto.so.

Hi I am getting the following result for that

 
 ldd $(whence ssh-keygen)
        libcrypto.so.0.9.7 =>    /opt/symas/lib/libcrypto.so.0.9.7
        libsocket.so.1 =>        /lib/libsocket.so.1
        libc.so.1 =>     /lib/libc.so.1
        libnsl.so.1 =>   /lib/libnsl.so.1
        libdl.so.1 =>    /lib/libdl.so.1
        libmp.so.2 =>    /lib/libmp.so.2
        libmd.so.1 =>    /lib/libmd.so.1
        libscf.so.1 =>   /lib/libscf.so.1
        libdoor.so.1 =>  /lib/libdoor.so.1
        libuutil.so.1 =>         /lib/libuutil.so.1
        libgen.so.1 =>   /lib/libgen.so.1
        libm.so.2 =>     /lib/libm.so.2
        /platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
        /platform/SUNW,Sun-Fire-T200/lib/libmd_psr.so.1

---------- Post updated at 04:50 PM ---------- Previous update was at 04:46 PM ----------

UNIX > echo $LD_LIBRARY_PATH

:/apps/oracle/product/10.2.0/client_1/lib32:/opt/symas/lib:/opt/bea/tuxedo9.1/lib:/opt/bea/wlserver_10.0/server/native/solaris/sparc
[/export/home/advx81d]

UNIX > crle
 
Default configuration file (/var/ld/ld.config) not found
  Default Library Path (ELF):   /lib:/usr/lib  (system default)
  Trusted Directories (ELF):    /lib/secure:/usr/lib/secure  (system default)
[/export/home/advx81d]

This is the problem. Either you have set $LD_LIBRARY_PATH or used 'crle' to modify the default search path.

To solve this issue, continue here: http://www.unix.com/solaris/141679-sunwcry_installed-referenced-symbol-not-found.html

Hi hergp , the other thread doesn't have a possible solution .Apparently editing LD_LIBRARY_PATH isn't a recommended solution.

mhardin said in one post in the other thread:

I see three possible solutions at the moment:

  1. try mhardins solution and remove the path to symas from the LD_LIBRARY_PATH. If it works, you are done. Maybe you have to talk to your software vendor to get support on this.
  2. put a wrapper around symas software to set LD_LIBRARY_PATH just for this software (I dont't know if this is possible, since I do not know the software)
  3. put a wrapper around solaris commands to change or unset LD_LIBRARY_PATH.

Finally, I agree with jlliagre, who said: