image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old March 28th, 2001, 12:41 PM
Teo Teo is offline
Registered User
 
Join Date: Nov 2000
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Teo is on a distinguished road
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.

Reply With Quote
  #2  
Old March 28th, 2001, 02:38 PM
Solaris's Avatar
Official something...
 
Join Date: Mar 2001
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Solaris is on a distinguished road
Red face rcp receipe

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!
Reply With Quote
  #3  
Old March 28th, 2001, 03:53 PM
Teo Teo is offline
Registered User
 
Join Date: Nov 2000
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Teo is on a distinguished road
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]
Reply With Quote
  #4  
Old March 29th, 2001, 02:39 PM
Solaris's Avatar
Official something...
 
Join Date: Mar 2001
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
Solaris is on a distinguished road
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!
Reply With Quote
  #5  
Old March 30th, 2001, 04:49 PM
UNIX with an Apple GUI - Cool
 
Join Date: Feb 2001
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
jpbjpbjpb is on a distinguished road
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
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

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


All times are GMT -5. The time now is 08:26 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.