1832869 Members
6885 Online
110048 Solutions
New Discussion

Re: Problem with remsh

 
SOLVED
Go to solution
Amiel Tutolo
Frequent Advisor

Problem with remsh

I am trying to run the following remote shell command:
remsh -l -n <script name>

I am getting the following error:
remshd: Host Address Mismatch

I have done some searching on the site but can find nothing. Can anyone lead me in the right direction? This script did work at one time.

Thanks in advance for all your help.
Live, love and laugh
6 REPLIES 6
Chris Vail
Honored Contributor
Solution

Re: Problem with remsh

This one is easy: its probably in the /etc/hosts table, or possibly a misconfigured DNS. Check for duplicate or erroneous entries on both machines.

When you fix it, then stop using remsh and switch to secure shell. You can't beat the price (its free) and its easier to script and its authenticated and encrypted.



Chris
Robert-Jan Goossens
Honored Contributor

Re: Problem with remsh

Hi,

doc
http://www5.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062903515

Take a look at next patch for 11.0

Patch Name: PHNE_23003

Patch Description: s700_800 11.00 r-commands cumulative patch

http://www5.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHNE_23003

Robert-Jan.
Umapathy S
Honored Contributor

Re: Problem with remsh

Amiel,
remshd retrieves client ip address from /etc/hosts (NIS/DNS if configured). Both the hosts try to verify each other in this case. Check that out.

Have you added multiple LAN cards in the machine as also multiple ip addresses for a card. Check that out.

HTH,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
Jairo Campana
Trusted Contributor
Paul Sperry
Honored Contributor

Re: Problem with remsh

After you have checked th hosts file on both systems make sure both have the enrty

hosts: files [NOTFOUND=continue] dns

in the /etc/nsswitch.conf

file.
Indira Aramandla
Honored Contributor

Re: Problem with remsh

Hi,

Yes I think the hostname that you are tring to remote shell, cannot be resolved. So before you remsh on to the server,

check if the server is resolved with the name and IP address. You can try this with nslookup hostname and nslookup IP address.

and makesure you /etc/nsswitch.conf file has the entry to look in hostfiles and DNS. Eg:-
hosts: files [NOTFOUND=continue] dns.

Then try to remsh and execute the command. And the user that you are remshing has to be in .rhosts file as well.
Never give up, Keep Trying