1833437 Members
3317 Online
110052 Solutions
New Discussion

rcp

 
Patricia Tang
Advisor

rcp

Hi,

Did anyone know how to solve this error message during rcp?

"remshd: Couldn't look up address for your host"

i have setup the /etc/hosts.equiv and .rhosts file.

Thanks in advance.
Best Regards,
Pat
7 REPLIES 7
Patrick Wallek
Honored Contributor

Re: rcp

I you are using DNS can it resolve the hostname of both your local and remote machines? If you are not using DNS, are both machine IP addresses in you /etc/hosts file? Do you have just the hostname or the fully qualified domain name in your hosts.equiv and/or ~/.rhosts? I have put both in mine so I don't have problems.
Patrick Wallek
Honored Contributor

Re: rcp

I you are using DNS can it resolve the hostname of both your local and remote machines? If you are not using DNS, are both machine IP addresses in you /etc/hosts file? Do you have just the hostname or the fully qualified domain name in your hosts.equiv and/or ~/.rhosts? I have put both in mine so I don't have problems.
David Mabo_1
Advisor

Re: rcp

Login from the remote systems and
do a who -R

# who -m -R
root console Feb 27 18:18 (hp1.x.com)

It will tell you the how it is resolving the name of the system. That is how you must enter it in you .rhost and hosts.equiv.

Patricia Tang
Advisor

Re: rcp

I am using DNS. I have try to edit the file /etc/hosts.equiv and .rhosts to add in the domain name but still having error message of "remshd: Couldn't look up address for your host"

Regards,
Pat
Steven Sim Kok Leong
Honored Contributor

Re: rcp

Hi,

On the remote host, check that name resolution is working properly ie:

1) dns does both forward and reverse name resolution OR /etc/hosts has an entry for your source (initiating) host.

2) Your /etc/nsswitch.conf contains the proper priority for name resolution eg. if you are using /etc/hosts, then:
hosts: files [NOTFOUND=continue] dns

Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
Rita C Workman
Honored Contributor

Re: rcp

OK..I know there is an issue here doing it this way. But in some of my .rhosts file I just simply enter:

+ username

I would recommend you do nslookup for both ip and hostname and make sure it comes up the same for both. More than likely, as was mentioned in last post, your nsswitch is probably /etc/hosts then dns...so check that host file for an error..
Brian Hackley
Honored Contributor

Re: rcp

Hi,
I've worked an issue similar to this that we addressed in the r-commands patch for 11.0:
PHNE_21731:
1. JAGad05687 / SR 8606136563:
"In remshd, there is a concept of reverse lookup, i.e. it cross checks the address it gets via gethostbyaddr() through gethostbyname(). In NIS, there is a problem that it cannot handle multi-homed address properly. For
gethostbyname() it queries on the hostname. So if in NIS host database the first entry for the hostname doesn't contain the primary IP address, reverse lookup fails.
Resolution:
Since this problem in NIS is impossible to fix, we added another new option "-s" in remshd. If this is set reverse lookup is disabled."

We've seen this issue with /etc/hosts and DNS too. By the way I don't believe 10.20 remshd has the issue. Its latest patch is PHNE_20748.

Regards,
Brian Hackley

Ask me about telecommuting!