|
#1
| |||
| |||
| Hi, I'd like to know if some of you guys have been using rcp to copy files from one computer to an other? I just cannot figure out how to make it works ... can someone give me pointer, directions .... thanks, -teo. |
|
#2
| ||||
| ||||
| The syntax is: rcp myfile host:/dir/to/copy/to Before this you have to set up host equivelence in /etc/hosts.equiv (to trust a remote host) or in $HOME/.rhosts (to trust a particular user on a host). For the hosts.equiv just list the host(s) eg: mymac g3po The hosts.equiv file trusts all users on the host except root (I think). For the .rhosts list the user and the host they live on, eg: steve mymac george g3po The remote user gets the privs of the user who's home dir has the .rhosts file. These files also allow acces to other 'r' commands like rsh and rlogin. Remember that the man pages are a good way to see how a command works.
__________________ Soon to be... Dual 2 GHz PowerMac G5 512 MB RAM 2 x 250 GB ATI Radeon 9800 23" Cinema Display My $0.02 will be about all I have left! |
|
#3
| |||
| |||
| Hi, well, that's what I was trying ... and it wasn't working. So I did include in the netinfo /machines/ my hosts with the corresponding IP ... so I can now do my rcp with the hostname instead of the IP. And i get a "Permission Denied" message when I do the rcp .. the wierd thing is that no matter if I do have a .rhosts or not when i do a rlogin or an rsh ... it still asks for a password ![]() Do you have any idea ? thanks, -teo. [Edited by Teo on 03-29-2001 at 03:11 PM] |
|
#4
| ||||
| ||||
| Try the IP I suspect that you have not set up any host lookup stuff (a different ballgame entirely!). Try to ping the IP address of "myhost" if successful try the rcp again: rcp myfile my.hosts.ip.address:/my/path Under OS X local nameserver stuff is handled by NetInfo (which I am yet to get my head around).
__________________ Soon to be... Dual 2 GHz PowerMac G5 512 MB RAM 2 x 250 GB ATI Radeon 9800 23" Cinema Display My $0.02 will be about all I have left! |
|
#5
| |||
| |||
| Don't use rcp Don't bother using rcp. Go to versiontracker and download & install the OpenSSH package, then use scp instead. Turning on rsh/rcp/rlogin will make your machine insecure and is an extremely bad idea, especially if you're on cablemodem or DSL. jpb |
![]() |
| Thread Tools | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Suggestion on the HOWTO & FAQs forum... | Darkshadow | Site Discussion | 3 | August 16th, 2004 11:04 AM |
| HOWTO - establish a Network between a OS X computer and a Windows XP PC ? | Belaran | Networking & Compatibility | 1 | July 2nd, 2003 10:09 AM |
| underdash tibook howto | noise | Hardware & Peripherals | 1 | February 19th, 2002 06:14 PM |
| qmail on OSX howto | sps | Mac OS X System & Mac Software | 0 | July 7th, 2001 12:03 PM |
| HOWTO for Samba on OSX | The DJ | Mac OS X System & Mac Software | 13 | October 7th, 2000 02:13 AM |