1838374 Members
3125 Online
110125 Solutions
New Discussion

rsh problem

 
Prasad Joshi
Regular Advisor

rsh problem

I am trying to connect to the HP-UX system from my desktop which is Linux through rsh.

I am getting this error.

D-T11673A:~ # rsh slpam15
rlogind: Host address mismatch..

Can any one help?

Thanks & regards,
Prasad
14 REPLIES 14
Peter Godron
Honored Contributor

Re: rsh problem

Prasad,
have tried using the ip address of slpam15.
Also check that the correct ports are open.
Prasad Joshi
Regular Advisor

Re: rsh problem

Hi Peter,

I have tried with IP Adress but, getting the same error.

If I try the same from another HP-UX machine there is no problem.

Thanks
Sergejs Svitnevs
Honored Contributor

Re: rsh problem

Seems You have more than one LAN card on the HP-UX machine and hosts file returns the incorrect IP address back to client. This caused the error messages.

Take a look at PHNE_23003 patch (r-commands cumulative patch).

http://www1.itrc.hp.com/service/patch/patchDetail.do?patchid=PHNE_23003&caller=james

Regards,


Prasad Joshi
Regular Advisor

Re: rsh problem

I have added an entry of my desktop in slpam15:/etc/hosts

If i do nslookup from slpam i get this.

bash-2.02# nslookup D-T11673A
Name Server: deleted
Address: deleted

Trying DNS
Trying NIS
looking up FILES
Name: D-T11673A
Address: some ip address
Ninad_1
Honored Contributor

Re: rsh problem

Prasad,

You Linux machine cannot resolve the host-ip address. Please refer to
http://www.daemon-systems.org/man/rshd.8.html

Try giving ip address of the server directly.
If you know the ip address and you do not have a DNS - put the entry for the host and ip address in the /etc/hosts file on your Linux machine.

Regards,
Ninad
Prasad Joshi
Regular Advisor

Re: rsh problem

Hi Sergejs Svitnevs,

I do have more than one lan card on the hp-ux machine

Thanks
Prasad Joshi
Regular Advisor

Re: rsh problem

Hi Ninad,

I am getting a same error when i try with IP Adress.

D-T11673A:~ # rsh IP-Address
rlogind: Host address mismatch..

Thanks
Prasad Joshi
Regular Advisor

Re: rsh problem

Hi Ninad,

I have already made enteries in /etc/hosts file of the linux machine.

As well as i have added Linux machine details in the slpam15:/etc/hosts files.

Thanks
RAC_1
Honored Contributor

Re: rsh problem

Troubleshoot as follows.
From linux box, just do plain telnet (with same user id hat you will use for rsh) and pass. Once logged, do who -um.
Note down what you see (ip_address/hostname) in last column of above command. Put same ip_address/hostname in .rhosts file on hp-ux in home dir. The .rhost file will look as follows.

"ip_address/hostname_you_seein_who-um" "user_name"from_linux"
There is no substitute to HARDWORK
Prasad Joshi
Regular Advisor

Re: rsh problem

I have put + in the .rhost file

Thanks
RAC_1
Honored Contributor

Re: rsh problem

nslookup on linux.

nslookup ip_of_hp-ux_server
nslookup of hostname_of_hpux_server


nslookup on hp-ux server.
nslookup ip_addr_of_linux_server
nslookup hostname_of_linux_server

Is everything correct? Do both servers use same dns/nis or plain /etc/hosts file?
There is no substitute to HARDWORK
Ninad_1
Honored Contributor

Re: rsh problem

Sorry, While I was editing - you had already updated the post.
So it needs to be analysed if it is really a problem of host name resolution at all, because you cannot rsh using ip address as well - even though the error message shows its not able to get the host name resolved.
First thing you need to sort out is whether its rlogin problem or you are not able to access the server at all.
Are you able to ping/telnet - reach the destination server in the 1st place ?
Are routing entries proper ?

Regards,
Ninad
Prasad Joshi
Regular Advisor

Re: rsh problem

Hi Ninad,

I am able to ssh from linux machine to hp-ux machine

Thanks
Prasad Joshi
Regular Advisor

Re: rsh problem

This is from the hp-ux machine

bash-2.02# nslookup D-T11673A.vxindia.veritas.com
Name Server: mainelic.vxindia.veritas.com
Address: 10.216.16.101

Trying DNS
Trying NIS
looking up FILES
Name: D-T11673A.vxindia.veritas.com
Address: 10.216.59.252

bash-2.02# nslookup 10.216.59.252
Name Server: mainelic.vxindia.veritas.com
Address: 10.216.16.101

Trying DNS
Name: D-T11673A.vxindia.veritas.com
Address: 10.216.59.252

This is from linux machine
D-T11673A:~ # nslookup 10.216.170.115
Server: 10.216.16.101
Address: 10.216.16.101#53

115.170.216.10.in-addr.arpa name = slpam15.vxindia.veritas.com.

D-T11673A:~ # nslookup slpam15
Server: 10.216.16.101
Address: 10.216.16.101#53

Name: slpam15.vxindia.veritas.com
Address: 10.216.170.115