Operating System - HP-UX
1820020 Members
3784 Online
109608 Solutions
New Discussion юеВ

Re: rlogin from HP-UX to solaris

 
SOLVED
Go to solution
Carles Viaplana
Valued Contributor

rlogin from HP-UX to solaris

Hello,

I need to connect to system B (SunOS 5.6) from system a (HP-UX B.11.11) through rlogin.

What should I doin both systems?

Note that:

- root passwords on both systems aren't the same
- I'm already able to execute rlogin command, but I want to do it and system doesn't request password.

Thanks in advance for your help.
Regards,

Carles
9 REPLIES 9
Robert-Jan Goossens_1
Honored Contributor
Solution

Re: rlogin from HP-UX to solaris

Hi Charles,

Create a .rhosts file on the solaris server in the $HOME root user and add

your_hp_server_name root

save it and try to use the rlogin command.

Best ragards,
Robert-Jan
Muthukumar_5
Honored Contributor

Re: rlogin from HP-UX to solaris

Setup .rhosts file setup in $HOME directory on both machines. Read .rhosts man page.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: rlogin from HP-UX to solaris

Hi Carles,

All you need is, create a .rhosts file in solaris server in the $HOME root user and add

root

save it and try to use the rlogin command.

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Muthukumar_5
Honored Contributor

Re: rlogin from HP-UX to solaris

Or else use ssh key based setting in solaris and hp machine to setup a password less authentication. Or use expect scripting to make authentication without password.

--
Muthu
Easy to suggest when don't know about the problem!
Arunvijai_4
Honored Contributor

Re: rlogin from HP-UX to solaris

Hi Carles,

This link could be helpful to you,

http://docsun.cites.uiuc.edu/sun_docs/C/solaris_9/SUNWabe/ADVOSUG/p30.html

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Simon Wickham_6
Regular Advisor

Re: rlogin from HP-UX to solaris

Hi Carles,

Simply setup a .rhosts file setup in $HOME with the following details.

.rhosts
-------
root
root

Regards,
Simon
KRI
Advisor

Re: rlogin from HP-UX to solaris

Hi!

You must also verify /etc/inetd.conf on SunOS machine. Take a look at line:
login stream tcp nowait root /usr/sbin/in.rlogind in.rlogind

More info:
man inetd.conf
man rlogind

Regards!
KRI
Bill Hassell
Honored Contributor

Re: rlogin from HP-UX to solaris

Make sure that the permission for the .rhosts file on the HP-UX machine is 600 and is owned by the user, in this case, root. You don't want anyone reading the contents of this file. Good security practices dictate that this type of file is heavily resdtricted (and depending on patches, may be a requirment as it is for .netrc).


Bill Hassell, sysadmin
Carles Viaplana
Valued Contributor

Re: rlogin from HP-UX to solaris

Hi all,

Thanks for your answers.

At the beginning I didn't find .rhosts into solaris system, but finally I saw list command didn't show hidden files.

After this little issue, I modified .rhosts files and /etc/hosts.equiv files and I'm able to execute rlogin command without system B requires password.

Thanks again for your help.
Regards,

Carles