1832950 Members
2866 Online
110048 Solutions
New Discussion

not able to do rcp

 
Sanjeev gupta_2
Frequent Advisor

not able to do rcp

Hi
i have two HPux11.11 boxes . i want to do rcp from one box to another.
i got following message while doing it

rcp test.txt user@pd10:/home/user
rcmd: connect: pd10: Connection refused

Pl. provide solution on this
Thx
sanjeev gupta
4 REPLIES 4
nancy rippey
Trusted Contributor

Re: not able to do rcp

Florian Heigl (new acc)
Honored Contributor

Re: not able to do rcp

either You don't have inetd or r-daemons enabled (ps -ef | grep inetd, and /etc/inetd.conf) or it's not set to allow You in. See man rhosts on that. :)

(ah, and btw - use scp!!!)
yesterday I stood at the edge. Today I'm one step ahead.
Mel Burslan
Honored Contributor

Re: not able to do rcp

on pd10, does the user have a .rhosts file with the following format:

(assume you are coming from pd11 with username user1)

pd11 user1

make sure .rhosts have 400 permissions

also make sure on pd10 you do not have any disabling done for pd11 in the /var/adm/inetd.sec for remsh or rexec services.

________________________________
UNIX because I majored in cryptology...
Bill Hassell
Honored Contributor

Re: not able to do rcp

The connection can be refused for several reasons. The most common is /var/adm/inetd.sec where a list a valid IP addresses is allowed (or denied). The second is /etc/inetd.conf where the remshd line must be enabled. Then check if there is a /etc/hosts.equiv (probably not, but if so, it controls remsh/rcp access) and then .rhosts in the HOME directory of the user trying to access the server.


Bill Hassell, sysadmin