Operating System - HP-UX
1760070 Members
2600 Online
108889 Solutions
New Discussion юеВ

rsh access from windows machine

 
walter crasto_1
Frequent Advisor

rsh access from windows machine

Hi,
I have HP-UX 11.0 server I am trying to run rsh command from windows base machine to my HP-UX server. I am getting following error while accessing as root user but can able to access using other user. I have made necessary entries in .rhosts file.


C:\>rsh 204.165.187.11 -l root pwd
204.165.187.11: remshd: Login incorrect.
rsh: can't establish connection

Same is happening on HP-UX 11i server.

Thanks & Regards
Walter Crasto.
7 REPLIES 7
KapilRaj
Honored Contributor

Re: rsh access from windows machine

.rhosts should do the trick ! Have you tried as a diff user from the same windows machine ?

Kaps
Nothing is impossible
G. Vrijhoeven
Honored Contributor

Re: rsh access from windows machine

Hi Walter,

You clould check the rights on the homedir, and .rhosts file.

HTH,

Gideon
Maxim Rozin
Frequent Advisor

Re: rsh access from windows machine

I suggest you to put ├В┬┤├В┬┤+├В┬┤├В┬┤ on your /.rhosts file, to make sure that the entry is valid.

Also make sure that work with ips and not dns names.

Also make sure that the resolving works in both sides.

nslookup pc-ip ---> the correct pc.
nslookup server-ip ----> the correct
nslookup server-name ----> the correct ip.
nslookup pc-name ----> the correct ip.

run it from both the server and
Robert-Jan Goossens
Honored Contributor

Re: rsh access from windows machine

Hi Walter,

I don't think you are logged in as root on your windows station, try adding the same username on your HPUX server + .rhosts file.

Regards,
Robert-Jan
Stuart Urquhart
Frequent Advisor

Re: rsh access from windows machine

You'll need to specify the user you're rsh'ing as in the command line from the Windows box :

rsh unix_svr -l unix_user command
("l" = ell)

And have access from the PC to the unix account via the unix users .rhosts file

cat ~/.rhosts
pc_name user_name

Make sure the PC IP address resolves verbatim to the pc_name in ~/.rhosts

That's how to it, but I think it's quite insecure !
Scott Palmer_1
Trusted Contributor

Re: rsh access from windows machine

Walter,

I think i know what the issue is. If you are not logged into windows as the user root, it wont work. There is an issue with rsh, it basically ignores the -l flag. I have seen this many times, and I create the user root on my windows system, and as long as i am logged into that account it works fine. I believe that it is a windows rsh bug. If I am wrong, please let me know how to fix the problem, I have about 1500 machines that could benefit from this fix.

Regards

Scott palmer
Rasheed Tamton
Honored Contributor

Re: rsh access from windows machine

Hi Walter,

rsh hostname -l username -n pwd
is the correct command. So nothing wrong in that. But if you are logged in as Administrator on your PC, try putting the
hostname Administrator
in your /.rhosts file. You have to be careful about the Caps letters in your .rhosts file when you deal with Windows.
The other thing is the reverse lookup issue. Try telnetting to the HP machine from the same PC and type who -R and put the exact ip or hostname in .rhosts file. If you see a Fully Qualified Domain name in who -R output, then you have to put the same in .rhosts file. ,e.g.,
yourpcname.domain.com.xx Administrator

Hope it will solve your issue
Rasheed.