Path: utzoo!attcan!uunet!mcvax!ukc!kl-cs!jonathan From: jonathan@cs.keele.ac.uk (Jonathan Knight) Newsgroups: comp.unix.questions Subject: Re: rcp Message-ID: <539@kl-cs.UUCP> Date: 1 Mar 89 09:34:22 GMT References: <18479@adm.BRL.MIL> Organization: University of Keele, England Lines: 31 From article <18479@adm.BRL.MIL>, by Leisner.Henr@xerox.com (Marty): > Here's (hopefully a simple one) -- > > I want to rcp between two machines which support it. > > I have different accounts on both machines. I have a similar situation. I put a .rhosts file in my home directory like this: For host1 I have: host2 username2 For host2 I have host1 username1 Then to rcp a file from host1 to host2 while logged into host1 rcp file host2.username2:file and to rcp from host2 to host1 while logged into host1 rcp host2.username2:file file Of course you should remember to remove the .rhosts files when you no longer need them :-). -- ______ JANET :jonathan@uk.ac.keele.cs Jonathan Knight, / BITNET:jonathan%cs.kl.ac.uk@ukacrl Department of Computer Science / _ __ other :jonathan@cs.keele.ac.uk University of Keele, Keele, (_/ (_) / / UUCP :...!ukc!kl-cs!jonathan Staffordshire. ST5 5BG. U.K.