Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 04-17-2008, 05:19 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 16

Rep: Reputation: 0
Question how to copy folder between machines

how to use 'rcp' to copy foder frm 1 machine to another. do it also asks for password??
Old 04-17-2008, 05:56 AM   #2
LQ Newbie
Registered: Apr 2008
Posts: 5

Rep: Reputation: 0
rcp -r documents

Copies the directory "documents", including all subdirectories, from the local machine to the directory "backups" in the user's home directory on the computer with URL, assuming that the user names are the same on both systems.

rcp -r study

Copies the directory "documents", including all subdirectories, from the remote machine to the directory "study" on the local machine.

Old 04-17-2008, 06:04 AM   #3
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
And don't double post - it really p*(^s people off

Last edited by billymayday; 04-17-2008 at 06:05 AM.
Old 04-17-2008, 07:39 AM   #4
LQ Newbie
Registered: Apr 2008
Posts: 16

Original Poster
Rep: Reputation: 0
when i try to do rcp
it gives back message "connection refused"
Old 04-17-2008, 10:34 AM   #5
Registered: Jul 2005
Distribution: Debian
Posts: 94

Rep: Reputation: Disabled
Try scp instead of rcp. On many systems rcp is actually just an alias to scp, but it could be that you actually have both methods available.

scp works over SSH, so not only are your files secure while in transit, authentication will work based on your SSH username and password or key.

man scp for more information.
Old 04-17-2008, 02:34 PM   #6
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.

Follow-ups go to

Closed Thread

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
how to copy folder between machines deepika5 Linux - Networking 23 09-03-2010 01:30 PM
Easy Way to copy machines? POST HERE!! richinsc Debian 8 02-18-2008 12:19 AM
How do I copy files from a linux machine to a Windows machines? hello321_1999 Linux - Software 11 05-15-2006 02:58 PM
Copy Files across two machines. abhijeetudas Linux - Security 6 04-25-2005 04:50 AM
Need to copy OS + hard drive contents between two machines with different hardware. tayo Linux - Newbie 12 07-24-2004 11:19 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:17 PM.

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