Operating System - HP-UX
1833187 Members
2641 Online
110051 Solutions
New Discussion

Re: remsh from HPUX to SCO ..

 
someone_4
Honored Contributor

remsh from HPUX to SCO ..

I am trying to write a script that will allow me to remsh from an HPUX box to a sco box and execute commands. But I cant get it to work.
Does anyone have any ideas?
remsh does not work.
11 REPLIES 11
Pedro Sousa
Honored Contributor

Re: remsh from HPUX to SCO ..

Hi!
Didn't you forget to create the .rhosts file in the Sun box?
You need to create that file in the user's home with permissions to the system and to the user.
then you should be able to remsh the system from the HP.
someone_4
Honored Contributor

Re: remsh from HPUX to SCO ..

Yeah that is done ..
And I even set up the etc/hosts.equiv
in the SCO box.
Victor BERRIDGE
Honored Contributor

Re: remsh from HPUX to SCO ..

Hi,
I just tried on a sco box..., you need only .rhosts, but the sco box must have your HPbox defined in /etc/hosts

Hope it helps

Good luck
Victor
Kevin Wright
Honored Contributor

Re: remsh from HPUX to SCO ..

both boxes must have the other ip address in it's respective /etc/hosts file. make sure the shell is not commented out in inetd.conf and exec.
are you sure you have the ~.rhosts file set up right..are you using the same login name on both boxes?
host1 login
or
host1 +
someone_4
Honored Contributor

Re: remsh from HPUX to SCO ..

I have the HPbox defined in the /etc/hosts
and i fun the command
# remsh host -l root -n 'hostname'
and this is what i get ..
Host address mismatch /#


someone_4
Honored Contributor

Re: remsh from HPUX to SCO ..

yes i have the .rhosts
setup right =)
Rajeev Tyagi
Valued Contributor

Re: remsh from HPUX to SCO ..

Hi,

Can you make sure that your remshd and rlogind are properly configured in inetd.conf file.
someone_4
Honored Contributor

Re: remsh from HPUX to SCO ..

Yes , remshd and rlogind are properly configured in inetd.conf file. I can remsh to any other HPUX box in my network.
Just having trouble with sco.
Would it be easier if I wrote the script on a SCO box to remsh to the other SCO boxes?
Kevin Wright
Honored Contributor

Re: remsh from HPUX to SCO ..

Berkely Services should not be very different on different unix flavors, login as root to the SCO box,
vi ~.rhosts
hpbox root
got to hpbox
login as root
remsh sco box
if that doesn't work, and inetd.conf is correct, and inetd.sec is OK,I don't know what else to tell you.
f. halili
Trusted Contributor

Re: remsh from HPUX to SCO ..

1) you may need to setup the following files:

/etc/hosts.equiv
/etc/hosts.allow
/home/username/.rhosts

- fnhalili
derekh
Unix Group
New Member

Re: remsh from HPUX to SCO ..

Hi,

Maybe kind of late to respond to this thread but here goes anyway....

I noticed on HP-UX that ".rhosts" usage is not restricted to having write permissions only for the owner/user in whoms home directory the file is located.

I believe this is a restriction on SCO systems.

Can anyone please verify my findings?

Regards,

Harm Meijer