ssh and scp not working


 
Thread Tools Search this Thread
Operating Systems Solaris ssh and scp not working
# 1  
Old 01-06-2011
ssh and scp not working

Dear All,

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

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

Last edited by DukeNuke2; 01-06-2011 at 06:30 AM..
# 2  
Old 01-06-2011
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 ?
# 3  
Old 01-06-2011
Hi ,

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

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

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


Last edited by DukeNuke2; 01-06-2011 at 06:29 AM..
# 4  
Old 01-06-2011
OK, try "unset LD_LIBRARY_PATH" and re-run the ssh command - see if that fixes it
# 5  
Old 01-06-2011
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.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

scp command not working

Hi All, I have automated the file transfer process using shell script.I used passwordless SCP to copy the files to my remote server as below. scp -P 2022 -v Test.dat username@Host:destination_folder But the files are not copied to the destination folder.The execution is terminated with... (1 Reply)
Discussion started by: Syruss
1 Replies

2. UNIX for Dummies Questions & Answers

scp command not working

I am trying to copy a file from a remote linux server to my local ubuntu box. I am issuing the following command: scp -v root@remote_server_IP:/test /data The output of the command is : OpenSSH_6.6, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config... (3 Replies)
Discussion started by: Palak Sharma
3 Replies

3. Solaris

SCP not working while SSH works

Dear expert, I have gone through the thread A similar error arising for me , please find the debug logs. I have tried from another server to push a file using scp but not working for me. i am using SunOS SUNW,SPARC-Enterprise machine. Thanks (5 Replies)
Discussion started by: posix
5 Replies

4. AIX

scp not working while ssh works

I try to transfer a file from a Linux host to an AIX-host via scp, which fails. Logging into the AIX-system from the same Linux-system via ssh works well and i am a bit at a loss where to look. The original setup was with a user account provided via LDAP, but because of the error message (see... (4 Replies)
Discussion started by: bakunin
4 Replies

5. Shell Programming and Scripting

scp is not working through sh script

Hi All, I am generating a ~ delimited file from oracle table and then transfer it to another server through scp. if then scp $COM_DIR/ABC.txt unix.nam.nsroot.net:/home/magna/dum/ABC.txt else echo "File does not exist, please check" >>$LOG fi The script generates the file,... (8 Replies)
Discussion started by: Amit.Sagpariya
8 Replies

6. Shell Programming and Scripting

SSH and SCP HELP

Hi all Iam using ssh and trying to change to a different user but im not able to do it. -------- Script.sh ssh user@hostname sudo rootsh whoami -------- -------- Script2.sh ssh user@hostname su - username password whoami --------- When i run the Script.sh it is connecting to... (4 Replies)
Discussion started by: coolkid
4 Replies

7. Solaris

SSH/SCP Question

Thanks to this forum, I was able to get a program running that uses SSH to control programs running on other hosts. Now I'd like to enhance it. The control program on the target hosts occassionally needs to be updated. Updating the menu program on the source host is easy as it is on one host. ... (1 Reply)
Discussion started by: PabloCruise77
1 Replies

8. Shell Programming and Scripting

ssh/scp - can you specify timeout?

I am scp'ing a file from a server (servera) to my server (serverb) If servera is down - the scp never times out ... it just hangs eternally.. It is possible to specify a timeout in my script - so if scp fails/hang for more than 60 seconds I assume its failed ? I am aware there is some... (3 Replies)
Discussion started by: frustrated1
3 Replies

9. BSD

SCP and ssh

I can't get ssh ans scp to work between to host on my network. I am prompted for the password and it isn't accepting the password and I know the password is correct because I am using the root password. What do I need to do to get ssh working between the two host and scp. I can putty into the... (2 Replies)
Discussion started by: rbizzell
2 Replies

10. Shell Programming and Scripting

SSH and SCP

The following ksh script is trying to get a file's cksum then, scp it over to a remote machine - get the cksum there and then compare the two cksums to make sure they match. I am having problems setting a variable on the remote host where it can be read locally. Is this even possible - reading a... (1 Reply)
Discussion started by: berrean
1 Replies
Login or Register to Ask a Question