SSH issue


 
Thread Tools Search this Thread
Operating Systems Solaris SSH issue
# 1  
Old 04-13-2011
SSH issue

Facing a SSH issue while creating passwordless login.

Code:
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
Code:
 
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

# 2  
Old 04-14-2011
What does

Code:
ldd $(whence ssh-keygen)

say? You seem to load a wrong version of libcrypto.so.
# 3  
Old 04-14-2011
Hi I am getting the following result for that
Code:
 
 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
Code:
:/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]

# 4  
Old 04-14-2011
Quote:
Originally Posted by flinders1323
Code:
        libcrypto.so.0.9.7 =>    /opt/symas/lib/libcrypto.so.0.9.7

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: https://www.unix.com/solaris/141679-s...not-found.html
# 5  
Old 04-14-2011
Hi hergp , the other thread doesn't have a possible solution .Apparently editing LD_LIBRARY_PATH isn't a recommended solution.
# 6  
Old 04-14-2011
mhardin said in one post in the other thread:

Quote:
As an aside, Symas's code is always linked with proper embedded runpaths so there is no need to put /opt/symas/lib in an LD_LIBRARY_PATH value or even in an ldconfig file.
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:
Quote:
As a further aside, unless you are a developer trying out custom libraries, setting the LD_LIBRARY_PATH in your environment is a broken approach in the first place.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Ssh issue

Hi All, I am trying to connect between two system , I am facing the issue with -SSH-t-l userid systemname exit ( this is the syntax) It suppose to ask for password , but it throws the error as mentioned below Error is received disconnect from system and remote login for the... (1 Reply)
Discussion started by: sudhainit
1 Replies

2. UNIX for Beginners Questions & Answers

Issue with SSH key

Hello All , I am trying to set up the keys to login seamless on to two diff environment server(s). i used to have it couple of years back , but somehow never worked and didn`t concentte much , but when i want to setup again . facing a challange while copying the id_rsa.pubfile to... (4 Replies)
Discussion started by: radha254
4 Replies

3. Solaris

SSH issue

Hi guys. I just installed Solaris 10 and want to enable ssh on it So that i can remotely use it from another location. I read a post on this forum an it was written that SSH is enabled by default. I did a ps -ef | grep ssh and nothing showed up meaning that it isnt running. I even tried... (11 Replies)
Discussion started by: Junaid Subhani
11 Replies

4. Fedora

ssh issue

Hello, I have two computers at my desk, let's call them A and B. I have some tasks that can only be performed on one of them and some on the other, so I need to be able to ssh from one to the other and vice versa to transfer files, etc. A can ssh to B without problem: I even copied the public key... (6 Replies)
Discussion started by: Leo_Boon
6 Replies

5. UNIX for Advanced & Expert Users

ssh issue

Hi I have a annoying situation here . Our non prod server connect to informatica to run the work flow. But since yest some jobs are getting failed due ssh to informatica server been unsuccessfull. please look into this. successful log for job fiusdcacct_ios_price_venld: SSH... (2 Replies)
Discussion started by: ptappeta
2 Replies

6. Shell Programming and Scripting

SSH issue

I want to run a program on remote server by using unauthenticated ssh. It works when I ssh from command line however, it does not work when I try to invoke ssh script with other application. Any clue? (6 Replies)
Discussion started by: sam101
6 Replies

7. Solaris

SSH/Firewall issue

I am a complete UNIX neophyte with the unenviable task of trying to pseudo manage two SUN boxes with an unknown past. I was not responsible for setting them up, anything that was done on them previously, and have no means of figuring out anything that was done to them. So far I have changed the... (4 Replies)
Discussion started by: tawnos42
4 Replies

8. Solaris

ssh issue

I'm having a problem with an ssh server "SSH-2.0-Sun_SSH_1.1.2" on solaris 10. when i do try to connect from windows using puTTY the server refuse's the connection . when i try to connect using telnet from the same windows machine it accepts the connection and i got the following bannar... (32 Replies)
Discussion started by: h@foorsa.biz
32 Replies

9. UNIX for Advanced & Expert Users

An issue with SSH

Hey Guys! I got two PCs at my place. In the beginning, one of my PCs had RHEL3( say PC1 ) and one had RHEL4 ( say PC2 ). I was able to ssh from PC1 to PC2 and vice-versa. But recently I've upgraded PC1 from RHEL3 to RHEL4. Now when i am trying to ssh from PC2 to PC1, it is not allowing... (1 Reply)
Discussion started by: chakri.penguin
1 Replies

10. UNIX for Advanced & Expert Users

ssh issue

Im using the default ssh program on a solaris 9 system to connect to another server. When connecting to the other host it make me type my password in 3 to 4 times before letting me in. Is anyone familar with this? (4 Replies)
Discussion started by: meyersp
4 Replies
Login or Register to Ask a Question