Operating System - HP-UX
1833832 Members
3142 Online
110063 Solutions
New Discussion

Re: remsh not working on hp ux

 
hemant dubey_1
Advisor

remsh not working on hp ux

trying to to do remsh from one server with user A on another server to user B but giving error login incorrect
15 REPLIES 15
Fabian Briseño
Esteemed Contributor

Re: remsh not working on hp ux

Hello hemant.

You need to edit the .rhosts file in each server.


Knowledge is power.
Fabian Briseño
Esteemed Contributor

Re: remsh not working on hp ux

Since when Is this occurring ?

did it work before ?

Knowledge is power.
hemant dubey_1
Advisor

Re: remsh not working on hp ux

.rhosts file is ok i am able to do remsh from B to A but not A to B
Rita C Workman
Honored Contributor

Re: remsh not working on hp ux

Then you need to double check the B server's .rhost file. Something is amiss.

Rgrds,
Rita
Fabian Briseño
Esteemed Contributor

Re: remsh not working on hp ux

Hello Hemant.

Check your /etc/hosts file

Knowledge is power.
hemant dubey_1
Advisor

Re: remsh not working on hp ux

it was working fine last week .
Fabian Briseño
Esteemed Contributor

Re: remsh not working on hp ux

Hello Hemant.
What command are you using ?

Knowledge is power.
hemant dubey_1
Advisor

Re: remsh not working on hp ux

/home/oraprap> remsh whithp03 pwd
remshd: Login incorrect.

hemant dubey_1
Advisor

Re: remsh not working on hp ux

on server whithp07 i am using this command

/home/oraprap> remsh whithp03 pwd
remshd: Login incorrect.

------------------
the .rhosts file of whithp03 is
whithp03:/root > more /home/orauat/.rhosts
whithp04 orauat
whithp05 orauat
whithp02 orauat
whithp06 oraprap
whithp07 oraprap
whithp08 oraprap
whithp09 oraprap
whithp20 oraprap
whithp20_bkp oraprap
Fabian Briseño
Esteemed Contributor

Re: remsh not working on hp ux

Hemant.
Check this link out

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=99356


hope it helps
Knowledge is power.
hemant dubey_1
Advisor

Re: remsh not working on hp ux

there is no /etc/hosts.equiv file in my hpux 11.11 system.

is it necessary or if i have to create it what entry should be there in this file
hemant dubey_1
Advisor

Re: remsh not working on hp ux

if i am trying
#remsh whithp03 pwd

it is asking for password not ...i think it should not ask for password
A. Clay Stephenson
Acclaimed Contributor

Re: remsh not working on hp ux

It's actually more secure to have an /etc/hosts.equiv file, owned by root, with mode 644 but a NULL file.

The next requirement is that an entry be found in the .rhosts file in the home directory of the user. The file should only be readable by the user and owned by the user. The most common error here (and may well explain your problem) is that the hostname listed in .rhosts does not match that returned by gethostbyaddr().

Do a man remshd. The authenication sequence is explained in great detail there.
If it ain't broke, I can fix that.
Dennis Handly
Acclaimed Contributor

Re: remsh not working on hp ux

>the .rhosts file of whithp03 is ...

You should include whithp03 in .rhosts so you can share the same file.

I've also had problems where I had to use the IP address for the source machine. Until the name server, DSN, etc. was fixed.
Matti_Kurkela
Honored Contributor

Re: remsh not working on hp ux

Check the permissions of the .rhosts file and the home directory of user B. If the .rhosts file is writable by anyone other than the owner, the system will ignore it.

The idea is to prevent access if it looks like the file might have been modified by someone other than the legitimate owner.

MK
MK