![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remote login/copy command throwing an error | ashish_panpalia | UNIX for Dummies Questions & Answers | 1 | 02-12-2008 01:04 AM |
| scp - copy between two remote machines? | kungpow | SUN Solaris | 6 | 02-04-2007 07:16 PM |
| Remote Copy without entering Username and Password | ilak1008 | UNIX for Dummies Questions & Answers | 1 | 01-11-2006 03:00 AM |
| help me to copy remote file | manmohan73 | HP-UX | 8 | 12-19-2005 09:29 PM |
| remote file copy across 2 systems (AIX and SCO) | aji | UNIX for Advanced & Expert Users | 4 | 09-13-2002 05:58 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
I facing a problem with Unix command "rcp". I unable to perform a rcp between host machines. I have religiously followed the man pages, but still unable to solve the problem. Do i check for anything to perform this command? Pls help....thanks =)
__________________
Smilies are ON |
| Forum Sponsor | ||
|
|
|
|||
|
rcp'ing ...
There are a couple preparatory measures to take before using the rcp command. The simplest way to rcp between two servers is to do the following:
1. a. Verify that the sending and receiving servers have the same user added (hence, if you are going to send a file to a directory owned by user1, make sure that it is being sent by user1) b. If the same user is not on both machines, become root and add them. 2. Go to the home directory of the user on the sending machine and vi a file called ".rhosts (e.g. cd ~user1 vi .rhosts ) 3. Add an entry to .rhosts a. If the hostname and i.p. address of the receiving server is NOT within /etc/hosts, add the i.p. address of the receiving server. b. If the hostname and i.p. address of the receiving server IS within /etc/hosts, simply add the hostname of the receiving server. 4. Repeat the process on the receving server (verify users, & add/ edit the .rhosts file) 5. Test the rcp connection: touch rcptest rcp rcptest <receiving server hostname>:<destination> e.g. rcp rcptest server1:/var/tmp/usr1/files You should now be able to rcp between the two machines. I hope that this works for you because it has not failed for me. Take care. Last edited by JHeliosfear; 07-25-2001 at 09:26 AM. |