Operating System - HP-UX
1825163 Members
3971 Online
109679 Solutions
New Discussion юеВ

Re: remsh from hp-ux to linux

 
Sanjay Yugal Kishore Ha
Frequent Advisor

remsh from hp-ux to linux

Hello,

Is there a way by which I can rsh from a HP-UX server to a linux box.
I tried setting the /.k5login and /root/.k5login file to contain
userH/userL@linuxbox.com where userH is the HP-UX login and userL is the Linux login.

From the hp-ux server, when I execute the
remsh linuxbox.com -l userL -n hostname command, I get permission denied error.

I have HP-UX 11.11 and RHEL AS 4 distro.

Please advise.

Thanks,
Sanjay
Dying is the last thing that I will do.
5 REPLIES 5
Coolmar
Esteemed Contributor

Re: remsh from hp-ux to linux

Hi Sanjay,

Is rsh turned on in your linux box? I am not sure, but I think by default they are disabled due to the insecurity of those commands.
I believe you use "chkconfig" to activate it.

Yang Qin_1
Honored Contributor

Re: remsh from hp-ux to linux

Hi, did you try to create a .rhosts file on linux machine under userL home dir? It should contain hpux_name userH


Yang
Sanjay Yugal Kishore Ha
Frequent Advisor

Re: remsh from hp-ux to linux

Hello Coolmar, Yang,

Thank you for your help. The chkconfig shows the rsh to be on.
I cannot use the ~/.rhost as it is not looked for on the linux box.

-Sanjay
Dying is the last thing that I will do.
Coolmar
Esteemed Contributor

Re: remsh from hp-ux to linux

Are you sure .rhosts are not supported on the linux system? I have read a few posts regarding RHEL4 and requiring .rhosts for the rsh commands.
Heironimus
Honored Contributor

Re: remsh from hp-ux to linux

A "permission denied" error rather than a connection failure sounds like the r* services are configured and running on the Linux side. But .k5login is only used for Kerberos V systems.

If you're not using Kerberos then you probably need .rhosts instead. What makes you think it's not being used?

If you're connecting in as root you may need to set up your /etc/securetty, but I'm not certain of that (it's been many years since I used the r* commands on Linux - better alternatives exist).

If you are using Kerberos then you probably need to make sure both systems can obtain tickets and that their clocks are in sync with each other and with the KDC. But there are a lot of other things to check with Kerberos too.