LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10: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, 10: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 10:35 PM.
 
Old 01-28-2005, 10:43 PM   #18
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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, 07: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, 08: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 08:58 AM.
 
Old 07-28-2012, 02: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 4 08-12-2021 03:36 PM
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 Copy File SSH petenyce Linux - Wireless Networking 2 10-05-2005 03:11 PM
scp - peserve file ownership and permission eyt Linux - Newbie 6 10-24-2003 03:41 PM
SCP ??? where did the file go ?????? lub0 Linux - Security 3 10-07-2003 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:56 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