Operating System - HP-UX
1837238 Members
2109 Online
110115 Solutions
New Discussion

remshd: login incorrect - due to alternate host name

 
Jim Mills_4
Advisor

remshd: login incorrect - due to alternate host name

I get the login incorrect and have followed many of the suggestion in the forums (thanks all) and have figured out that what is happening is that the server that one can't rcp from is using the wrong ip address.

We have MC-Serviceguard, thus are running packages with their own IP addresses. This works fine on our production boxes, but for some reason when rcp'ing from the development box, the other machines are seeing the ip (and name) of the first package instead of the host and it's ip address.

In this example, the ip/host is 10.28.38.225/t21aldu1, and the package is 10.28.38.14/t21aldrt

Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan2 1500 10.28.36.0 10.28.38.224 2475512 0 24289677 0 0
lan0 1500 192.168.1.0 192.168.1.221 140206 0 141976 0 0
lo0 4136 127.0.0.0 127.0.0.1 1103262 0 1103262 0 0
lan2:1 1500 10.28.38.0 10.28.38.15 10262507 0 8087420 0 0
lan2:2 1500 10.28.38.0 10.28.38.14 747816 0 6289147 0 0
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan2 1500 10.28.36.0 10.28.38.224 2475512 0 24289677 0 0
lan0 1500 192.168.1.0 192.168.1.221 140206 0 141976 0 0
lo0 4136 127.0.0.0 127.0.0.1 1103262 0 1103262 0 0
lan2:1 1500 10.28.38.0 10.28.38.15 10262507 0 8087420 0 0
lan2:2 1500 10.28.38.0 10.28.38.14 747816 0 6289147 0 0

Yet, on the other boxes (after running inetd -l and tail -f /var/adm/syslog/syslog.log) I saw that the incoming ip/host was the lan2:2's 10.28.38.14/t21aldrt

Any ideas why this is happening? I'm sure there's something on t21aldu1 I need to fix.
3 REPLIES 3
Alex Lavrov.
Honored Contributor

Re: remshd: login incorrect - due to alternate host name

Make sure that ip and user entry in .rhosts file in the user's home directory is correct. I think the remote machine is not resolved as you think it's resolved, that's why you get "login incorrect" message.


Server1 Server2 (.rhosts here)

rcp ---------------->
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Jim Mills_4
Advisor

Re: remshd: login incorrect - due to alternate host name

Looks like it had something to do with the subnet mask...but you were on the right track Alex as it was "easier" to use the virtual ip address for name resolution.

Thanks for helping out.
Jim Mills_4
Advisor

Re: remshd: login incorrect - due to alternate host name

HP and I found the solution of the subnet mask.