1753776 Members
7008 Online
108799 Solutions
New Discussion юеВ

Re: can't use rcp

 
SOLVED
Go to solution
peterchu
Super Advisor

can't use rcp

I have setup a new RH Linux ( host B ) , I can't use "rcp" to copy file from host A to it , I have already setup the ~userid/.rhosts ( hosts IP ) , what services or setting that I need to set at host B ? thx
7 REPLIES 7
peterchu
Super Advisor

Re: can't use rcp

I have already setup the /etc/securetty , and add rcp rsh to it , but still not work
Stuart Browne
Honored Contributor

Re: can't use rcp

Is the 'rsh' service running ('chkconfig --list rsh'), and is the firewall allowing the traffic in (use 'iptables -nvL' to check) ?
One long-haired git at your service...
Andrew Bruce
Valued Contributor

Re: can't use rcp

As Stuart says, check you have the rsh daemons running (rsh supports rlogin, rcp, and remsh, but I don't think the RPM is installed by default):

rpm -q rsh

should tell you.

However, bear in mind that rcp is insecure.

You may be better of setting up ssh on the processor and using 'scp' instead. It is a secure replacement for rcp (the usage is identical with the exception that if your target host doesn't 'know' the machine initiating the scp, you get prompted for a password (conpared with the rcp simply failing with an authentication error).

It takes a little extra effort to get ssh set up, but once it is, it is far more flexible and easier to use (oh, and more secure! :-)

HTH.

A.
I Love it when a plan comes together!
dirk dierickx
Honored Contributor

Re: can't use rcp

don't use rcp, but use scp instead.

all r* commands are unsafe.
Vitaly Karasik_1
Honored Contributor

Re: can't use rcp

if rsh is up and rcp doesn't work, check

- .rhosts sysntax and permission.
- DNS resolution
- do you use the same userid on both systems?
Ross Minkov
Esteemed Contributor
Solution

Re: can't use rcp

make sure that .rhosts perms are set to 600

and use ssh/scp instead of rsh/rcp.
Muthukumar_5
Honored Contributor

Re: can't use rcp

Did you setup the .rhosts on both end of hostA and hostB?

Can you execute rsh between these two?
what did you get during rcp issuing so that to find the issue.

Is hosts IP resolvable on both end's? Check it with nslookup command? Is remshd running to service rcp on hostB or not??

check remshd on remote hosts else start it and check
Easy to suggest when don't know about the problem!