1833770 Members
3008 Online
110063 Solutions
New Discussion

To set up rlogin

 
SOLVED
Go to solution
ramesh_4
Occasional Advisor

To set up rlogin

I want to setup rlogin from one server to another server.

I want the rlogin not to ask for password and directly login to the server as root.

could any one be able to help?

like to find out new things and compare with other flavours of unix
5 REPLIES 5
Frank Li
Trusted Contributor

Re: To set up rlogin

on the server(hostb) edit the /.rhosts file with line :
hosta //hosta hostname or ip address

Then hosta 's root can rologin rlogin hostb without providing passwd .
Be careful that the file (/.rhosts) should be owned by root !!!

you can "man rhosts" for more information
Hi Friend
Vincenzo Restuccia
Honored Contributor

Re: To set up rlogin

Insert in /.rhosts "hostname or ip address" root(user),and /etc/hosts.equiv insert hostname.
Ravi_8
Honored Contributor

Re: To set up rlogin

Hi,
assume you are in system A
make the entry in /etc/.rhosts and /etc/hosts.equiv for the user you wanted to login and create a account for that user in the system B. edit the /etc/passwd file in system B and make passwd field empty.
Now from system A you can login to B without the password
never give up
Shahul
Esteemed Contributor
Solution

Re: To set up rlogin


Hi

It is very easy. Suppose U are sitting in HostA and U want to do rlogin to HostB.
Login to HostB and create /.rhosts file. Add hostname of HostA in this file. Like this

hostA

But corresponding IP should be there in /etc/hosts file.

Now U login in HostA as root and then do a rlogin to HostB, It will not prompt for passwd.

Shahul
ramesh_4
Occasional Advisor

Re: To set up rlogin

Hi Pals,

With all of your help i have set up rlogin successfully in my servers. Thanks very much for all of your deemed help.

regds
Ramesh
like to find out new things and compare with other flavours of unix