LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2005, 11:26 PM   #16
Baix
Member
 
Registered: Jun 2004
Distribution: Gentoo, LFS, Slackware
Posts: 203

Original Poster
Rep: Reputation: 30

Nothing yet... but the error did change slightly to:

Code:
cp: directory brian@(ipaddress)home/brian does not exist
still no space between the ipaddress and home, all crushed together
 
Old 01-28-2005, 11:28 PM   #17
Baix
Member
 
Registered: Jun 2004
Distribution: Gentoo, LFS, Slackware
Posts: 203

Original Poster
Rep: Reputation: 30
SUCCESSSSSSSSSSSSSSSSSSSSS



Code:
scp test.txt brian@foonesstothemax:'/home/brian/'
And it worked perfectly! Oh god, thanks so much for your help Dark_Helmet

EDIT: /me notices LFS under Dark_Helmet's name and is impresssed.
Thanks again!


Edit again, are you in anyway affilated with Dark Helmet from Halo 2? just had to check lol

Last edited by Baix; 01-28-2005 at 11:35 PM.
 
Old 01-28-2005, 11:43 PM   #18
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Hehehehe... bizarre... real bizarre. When they said Mac users "think different"... well, that's different.

Glad I could help. Wish it could have been figured out sooner though.

LFS isn't so difficult as it is addicting. You always think of a "better" way to manage your system after you've passed the point of no-return with your current install.

As for Halo 2... That's not me Although I do have an Xbox and a copy of it, I've never jumped on Live. I have an unnatural/irrational aversion to pay-to-play services. I've manged to beat Halo 2 on normal, but the Heroic setting seems to be a huge step up in difficulty. I didn't notice that kind of spike in the original Halo. Maybe I'm just getting old and the reflexes ain't as quick anymore.
 
Old 02-01-2005, 08:49 AM   #19
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Have you tried looking at his .profile or .login or .bashrc?

I once had a .bashrc that echoed some stuff on succesfull login. It pretty much messed up scp (because it tunnels data over ssh, and the echoed stuff is not in the protocol) even though ssh was working perfectly.

Groetjes,

Kees-Jan
 
Old 02-01-2005, 09:47 AM   #20
wpn146
Member
 
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170

Rep: Reputation: 30
scp / cp ???

Quote:
Originally posted by Baix
Actually cp isn't a typo, the error actually comes out like that.
And I made quadrubly sure he was trying scp before preparing to bludgeon him to a bloody pulp.
When you scp to Brian's account, you will run his .bashrc file. Could he have an alias set up to map 'scp' to 'cp'? If so, get the bludgeon ready. Similarly, when you scp to him, it spawns a partner scp at his end so $PATH must be set up to locate the correct scp. It may be finding something else on the target system.

Edit. I didn't notice the 2nd page so I guess this is fixed now. Still a good idea to check .bashrc though.

Last edited by wpn146; 02-01-2005 at 09:58 AM.
 
Old 07-28-2012, 03:42 PM   #21
lladnew
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
Thumbs up You're a genius

Quote:
Originally Posted by Dark_Helmet View Post
Well, it looks pretty much the same... I was mainly suspicious of the user@host parts.

In that case, the problem might be with bash and how it interprets the command line. He could try quoting the destination file in an attempt to preserve it. Something like:
Code:
scp test.txt 'brian@ip_address:/home/brian'
I didn't use the foo'd bit just to avoid confusion about the quoting. If that works, then his version of bash is interpreting the user@host:file specification as something "special".
I know this post is really old, but it helped me solve my problem. I'm using a mac and trying to scp to EC2. The mac apparently didn't like the command without the quotes. I added the single quotes, and it worked! Previously I was getting the no such file or directory error.

Thanks Dark Helmet and poster.
 
  


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 text file busy error seran Linux - General 3 03-24-2010 10:21 AM
scp does not work and gives the following error message: scp: FATAL: Executing ssh1 i akay Linux - Networking 16 09-29-2008 12:41 AM
SCP Copy File SSH petenyce Linux - Wireless Networking 2 10-05-2005 04:11 PM
scp - peserve file ownership and permission eyt Linux - Newbie 6 10-24-2003 04:41 PM
SCP ??? where did the file go ?????? lub0 Linux - Security 3 10-07-2003 06:19 PM


All times are GMT -5. The time now is 02:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration