Subject: Re: rcp or scp
To: David S. <davids@idiom.com>
From: Perry E.Metzger <perry@piermont.com>
List: netbsd-help
Date: 11/21/2003 18:12:57
"David S." <davids@idiom.com> writes:
>> I'm trying to copy a file to a remote machine using rcp, but I'm getting an 
>> error message reporting connection refused.
>> 
>> What should I do on destination machine or even on source machine?
>> I've looked for documentation, without success.
>
> A number of things could cause this problem:
>
> 	- Is the remote host offering the service (is 'inetd' running
> 	   with the 'shell' service enabled)?
> 	- Is the remote host blocking the 'shell' port 514, via a
> 	   packet filter or the 'hosts.allow/hosts.deny' mechanism?
> 	- Is a packet filter on the local host blocking the
> 	   connection?  With 'rcp' or 'rsh', the remote host will
> 	   attempt to make a connection back to local at some
> 	   arbitrary port.

FYI, in general, no one should use rcp instead of ssh/scp on the open
internet. It is arguable they shouldn't be used behind a firewall,
either, if you don't have some pressing reason to use them.

-- 
Perry E. Metzger		perry@piermont.com