The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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 !!

More UNIX and Linux Forum Topics You Might Find Helpful
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

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-24-2001
Registered User
 

Join Date: May 2001
Posts: 2
Question Remote file copy

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
  #2 (permalink)  
Old 07-24-2001
LivinFree's Avatar
Goober Extraordinaire
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584

Are you getting an error back? If so what is it? Are you sure there is an appropriate server on the other machines?
  #3 (permalink)  
Old 07-25-2001
Registered User
 

Join Date: Jul 2001
Location: Chicago, IL
Posts: 8
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.
  #4 (permalink)  
Old 07-27-2001
Registered User
 

Join Date: May 2001
Posts: 2
Smile thanks

thanks for ur help, appreciate that =)
__________________
Smilies are ON
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:42 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0