1833802 Members
2579 Online
110063 Solutions
New Discussion

rsh question

 
SOLVED
Go to solution
Reggie Chang
Frequent Advisor

rsh question

Hi there,

I cannot make rsh work the way I want.

We have an IBM (AIX 5.1) and an HP (10.20)
and I need to remotely access hp from IBM
with rsh.

In my hp account, I have .rhosts with two lines:
reggie IP_IBM
root IP_IBM

and /etc/hosts.equiv of hp has a line:
IP_IBM

I have the same user id and password on both
IBM and hp. I could run "rsh hp_IP ls" from
IBM as reggie, personal userid. However, I
cannot run "rsh hp_IP -l reggie ls" as root
from IBM. Changing root password to be the
same did not help.

What could be the problem?

Best regards,

Reggie

3 REPLIES 3
c_51
Trusted Contributor
Solution

Re: rsh question

the syntax of the .rhosts file is:
hostname username

the opposite of what you have.
KapilRaj
Honored Contributor

Re: rsh question

Also ....

in aix root user's home is "/root" whereas in hp it is "/" so u must keep .rhosts in the correct place

regds,

Kaps
Nothing is impossible
Reggie Chang
Frequent Advisor

Re: rsh question

Thank you c.

I followed SAMS UNIX Unleasned (1998)
which has it wrong apparently.


Thank you Kapil. I used vi ~/.rhosts


Reggie