Operating System - HP-UX
1837588 Members
3512 Online
110117 Solutions
New Discussion

Re: rsh not working from Windows XP to HP-UX

 
Sanjay Kumar Suri
Honored Contributor

rsh not working from Windows XP to HP-UX

We have HP-UX 11.11 running SAP on Oracle. We would like to run BRGUI from Windows XP to connect to Oracle database running on the system say tstapp.

We have installed Java 1.4.2 on Windows system.

tstapp: Added following entry in .rhosts file tstapp.

ip_number of client +

Now while running

rsh tstapp -l user1 ll (rsh is hanging)

While giving the command
rsh tstapp -l user1

in BRGUI we get "Logon Filed".

Please help. Thanks.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
15 REPLIES 15
harry d brown jr
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

Sanjay,

.rhosts is expecting a host name.

Also, try two plus signs: + +

Have you installed SP2 for XP?

any error messages in syslog?

live free or die
harry d brown jr
Live Free or Die
Denver Osborn
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

From the WinXP box can you telnet to the hp-ux box and run 'who -muR' and compare that against the ip_address / hostname you have listed in the .rhosts file?

Hope this helps,
-denver
T G Manikandan
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

Harry has got this..

Try with

+ +

in your .rhosts file.

That should work.
Elmar P. Kolkman
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

Also make sure that you don't have the firewall active on the network link being used by XP, since the remshd will open a second connection back to the XP box...

(checkout the remshd manual page on this)

You might checkout the syslog.log on the hp box for info on failing remsh connections too to get more info on why this is failing. If possible, you could also check if the user works from another HP-UX box (or from the box itself). Especially if you have the "+ +" line in the .rhosts, you should be able to do "remsh localhost -l user1 ll" on the box itself.
Every problem has at least one solution. Only some solutions are harder to find.
Jan Sladky
Trusted Contributor

Re: rsh not working from Windows XP to HP-UX

Hi Sanjay,

you have two options

a) trusted hosts entries in $HOME/.rhosts,
hostname and user, eg:
smp3-1m root
smp3-1 root
pluto smsadmin
metis smsadmin
sce3 smsadmin
sce4 smsadmin

b)
or in
/etc/hosts.equiv only hostname
sun


rgds Jan

GSM, Intelligent Networks, UNIX
Sanjay Kumar Suri
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

1. I have put the following (exaustive) entry in the .rhosts file: + +

2. Firewall is not active in XP. It has SP2 installed.

3. Following command is working from the local/remote host (HP-UX): $remsh localhost -l user1 ll

4. No error reported in syslog.


Still No luck.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Sanjay Kumar Suri
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

Any inputs?

sks

A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Sanjay Kumar Suri
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

While investigating further following are the observations:

1. HP-UX us sending RST=1 in the last packet.

2. At Windows level rsh is just hanging.

Any clue will be highly appreciated. Thanks.

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Ron Kinner
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

What options do you have after

shell stream tcp nowait root /usr/lbin/remshd remshd

in /etc/inetd.conf?

When XP tries to connect, do netstat -an on both machines. Do you see the connection on both? What port is the XP using as a source? Is the destination port 514? Is that what it says for shell in /etc/services? (or are we trying to do Kerberos in which case what port does kshell use.)

Ron

Sanjay Kumar Suri
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

Thanks Ron for the reply.

We have the entries as below:

/etc/inetd.conf
shell stream tcp nowait root /usr/lbin/remshd remshd

/etc/services
shell 514/tcp cmd # remote command, no passwd used

When we execute following commnad

rexec host -l user command

We get the output after entering the passwd prompted by the above command.

However while using rsh; the cursor at Windows level just hangs.

Detailed investigation of packets sent by the host to Windows has RST=1 in the last packet. What does that mean?

Can someone try rsh from Windows to HP-UX and give feedback?

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Christian Deutsch_1
Esteemed Contributor

Re: rsh not working from Windows XP to HP-UX

Dear Sanjay,

I tried using cygwin rsh from Windows XP:

rsh -l user hostname

rsh then prompted me for a password, which I entered and then I had my shell on the remote machine. I didn't get this working with .rhosts recently but I think I had it working in the past.

Kind regards, Christian
Yeshua loves you!
Vince Laurent
Respected Contributor

Re: rsh not working from Windows XP to HP-UX

There is a known bug with Win XP SP2 rsh.
Christian Deutsch_1
Esteemed Contributor

Re: rsh not working from Windows XP to HP-UX

Dear Sanjay,

A month or two ago I set up a cygwin sshd on Win XP SP2. This way it is possible to communicate via ssh from any other system. This can also be set up such that you don't need to enter a password each time you connect. Maybe that's an option for you?

Kind regards, Christian
Yeshua loves you!
Volker Borowski
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

Hi,

is the XP User-Name the same as on Windows ? Do not trust the wildcards in .rhosts ! They are security critial in any case. Go fo

client_ip username

AND watch it. The Username in Windows is not case sensitive (the password is !). So you can login either with "hugo" "Hugo", which will not make any difference to XP, but check XP-Environment %USERNAME% it reflects the exact typing upon login, and as far as I remember this is the style rsh sends of the clients Userid, so may be you have a garbled username ?

Do you have brgui-Version 7 or 8 (or is even 9 already out?) ?

Volker
Volker Borowski
Honored Contributor

Re: rsh not working from Windows XP to HP-UX

...and .rhosts for user "orasid" has
-rw-------
???
just came to my mind ?
Volker