Operating System - HP-UX
1833860 Members
2115 Online
110063 Solutions
New Discussion

Strange- RCP works every other time

 
Jeffro_1
Occasional Advisor

Strange- RCP works every other time

This just started to happen.
When I use rcp to copy a file from one server to another, every other time I execute the rcp command I get the error:
remshd: login Incorrect

As a example if I execute the command

rcp test.file server2:/db/tmp (It works ok)

The very next time I execute the same command:
rcp test.file server2:/db/tmp I get the error: remshd: login incorrect
5 REPLIES 5
rick jones
Honored Contributor

Re: Strange- RCP works every other time

Perhaps someone has associated more than one IP address with the name "server2" and a round-robin DNS server is flipping the order?
there is no rest for the wicked yet the virtuous have no pillows
Kapil Jha
Honored Contributor

Re: Strange- RCP works every other time

What happens when u run it again, yes DNS can be lil issue but it sounds strange :)

Do it with IP, and run nslookup for this server for sometime to see if IP is the cause.

BR,
Kapil
I am in this small bowl, I wane see the real world......
Bill Hassell
Honored Contributor

Re: Strange- RCP works every other time

On server2, append the IP address in addition to the hostname in .rhosts. If it works reliably, you have DNS problems.


Bill Hassell, sysadmin
Jeffro_1
Occasional Advisor

Re: Strange- RCP works every other time

I did append the IP address in addition to the hostname in .rhosts and it worked reliably. If I have a DNS problem and suggestions on how to proceed to resolve.

I am working on a HP server running HPUX

Thanks.
Jeff
Bill Hassell
Honored Contributor

Re: Strange- RCP works every other time

You have to take up the problem with your DNS administrator. HP-UX is simply asking the DNS server to translate a hostname to an IP address. Apparently it is not always working correctly.


Bill Hassell, sysadmin