LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-10-2005, 10:45 AM   #1
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Rep: Reputation: 30
scp problem


Hi all,

I don't really know the first thing about networks, so this may be a ridiculous question.

I'm booting up a windows box with a linux live cd and trying to either ftp or scp a bunch of files to a mac box. Two questions:

how would i recursivelly put all directories using ftp?

when i try scp, like so:
scp -r root@localhost:/whatever/* user@IP:/whatever
i get something like: could not connect to localhost, localhost: connection denied

thanks,

Milos.
 
Old 12-10-2005, 03:17 PM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
It is not necessary to provide a user and hostname for your local machine. In the command you're using you are telling scp to log into ssh on localhost, and ssh may not even be running on the loopback device. Even if it was the step is redundant.

So try
Code:
scp -r directory_here user_here@host_here:~
instead.

I added the ':~' to explicitly point it to that user's home directory. (The scp program may already do that by default.)
 
Old 12-11-2005, 04:17 PM   #3
mbegovic
Member
 
Registered: Nov 2003
Location: Vancouver, Canada
Distribution: Currently FC3
Posts: 342

Original Poster
Rep: Reputation: 30
thanks a lot. that worked.

m.
 
  


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 Lotharster Linux - Networking 6 12-02-2005 03:40 AM
scp problem! alaios Linux - Security 5 05-08-2004 01:06 PM
scp problem eduac Linux - Security 3 08-11-2003 10:00 AM
scp problem pentium5 Linux - General 0 06-16-2002 11:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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