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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
01-28-2005, 10:26 PM
|
#16
|
Member
Registered: Jun 2004
Distribution: Gentoo, LFS, Slackware
Posts: 203
Original Poster
Rep:
|
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
|
|
|
01-28-2005, 10:28 PM
|
#17
|
Member
Registered: Jun 2004
Distribution: Gentoo, LFS, Slackware
Posts: 203
Original Poster
Rep:
|
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.
|
|
|
01-28-2005, 10:43 PM
|
#18
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
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.
|
|
|
02-01-2005, 07:49 AM
|
#19
|
Member
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273
Rep:
|
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
|
|
|
02-01-2005, 08:47 AM
|
#20
|
Member
Registered: Jan 2005
Distribution: Solaris, Linux Fedora Core 6
Posts: 170
Rep:
|
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.
|
|
|
07-28-2012, 02:42 PM
|
#21
|
LQ Newbie
Registered: Jul 2012
Posts: 1
Rep: 
|
You're a genius
Quote:
Originally Posted by Dark_Helmet
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.
|
|
|
All times are GMT -5. The time now is 06:56 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|