LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-13-2007, 06:44 PM   #1
khanrockz
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Rep: Reputation: 0
SCP problem ... Please help !


Hi !
I am running into a problem that I have never experienced or seen before. As there are a lot of linux gurus here , this might be trivial to them ( or may be not ! ).
OK , so here it goes , I am using scp on two linux boxes. On one box ssh is not in the path or it is in the path but cant run. The error it gives is :

ukhan bin> ssh
ssh: error while loading shared libraries: libssh.so: cannot open shared object file: No such file or directory

So I presume it is broke. As it is broke it should not run (and it doesnt) but miraculously scp works !! Now I thought that scp internally calls ssh and if ssh is broke it wont run ... but it does !! Strace call shows me that scp executes this :

execve("/usr/bin/ssh", ["/usr/bin/ssh", "-x", "-oForwardAgent no", "-oClearAllForwardings yes", "-lroot", "192.168.0.4", "scp -t /root/scpexit"], [/* 34 vars */]) = 0

So I dont know how ? but it works.

Now on the other box , i have ssh installed and is in the path. But when I try to execute scp it gives me this error :

ukhan bin> scp test.txt root@192.168.0.4:/root/
command-line line 0: Missing yes/no argument

Again using the strace this time the call is :
execve("/usr/bin/ssh", ["/usr/bin/ssh", "-x", "-oForwardAgent no", "-oClearAllForwardings yes", "-lroot", "192.168.0.4", "scp -t /root/"], [/* 34 vars */]) = 0

Now the commands look similar but one breaks and the other doesnt ??? Also, if I run "ssh -x -oForwardAgent No root@192.168.0.4" ... it will give me the same error. So this means it is not even a valid ssh command. I have tried using "ssh -o ClearAllForwardings yes root@192.168.0.4". This would give me the same error.
I am confused ... if this is not even a valid ssh command then how is scp using it ? How is first box working and the scond one not ?
Any help is appreciated .
 
Old 06-13-2007, 07:34 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
And which version of ssh on which version of Linux is which of
those machines running?

As for the first odd case (ssh complaining about missing libs) ...
did you check perms on the libs and executables, does libssh.so
exist on your machine, is in the LD_LIBRARY_PATH (or /etc/ld.so.cache)?


Cheers,
Tink
 
Old 06-14-2007, 11:18 AM   #3
khanrockz
LQ Newbie
 
Registered: Feb 2007
Posts: 13

Original Poster
Rep: Reputation: 0
I am running ssh v2.
About first problem. You were right. SSH was not running cause its path was not in LD_LIBRARY_PATH. I fixed it and it worked fine.
The second problem is still there giving me that "yes/no" error. Any scp guru out here ?

Last edited by khanrockz; 06-14-2007 at 11:27 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-28-2008 11:41 PM
scp problem digsby0007 Linux - Software 2 06-05-2008 10:26 AM
SCP problem Lotharster Linux - Networking 6 12-02-2005 03:40 AM
scp problem! alaios Linux - Security 5 05-08-2004 01:06 PM
scp problem pentium5 Linux - General 0 06-16-2002 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration