1834367 Members
1952 Online
110066 Solutions
New Discussion

rlogin without password

 
tayal_sumit
Occasional Advisor

rlogin without password

Hi All,

I want to enable rlogin from a HP-UX server A to HP-UX server B withoout password.

So please tell me the steps or file which should i have to edit to enable rlogin.

regards,
8 REPLIES 8
SUDHAKAR_18
Trusted Contributor

Re: rlogin without password

Hi,
1)In $HOME/.rhosts file
hostname user
ex:myserver root

or

2) In /etc/hosts.equiv
hostname user
ex: myserver root

HTH
Regds,
SHR
Peter Nikitka
Honored Contributor

Re: rlogin without password

Hi,

look into 'man rhosts'.
Short for user uu, who exists on A and B:
@B: print A>>~/.rhosts; chmod 600 ~/.rhosts

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Peter Nikitka
Honored Contributor

Re: rlogin without password

Hi,

look into 'man rhosts'.
Short for user uu, who exists on A and B:
@B: print A >>~/.rhosts; chmod 600 ~/.rhosts

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Ajju
New Member

Re: rlogin without password

craete a .rhosts file in home directory .
and put the respective entry .

if u r put only plus symbel on that , the respective user can login from any machine with out passwd .

eg :
vi /.rhosts
+

means root user can from any server to this server with out passwd .
vijay alur
Advisor

Re: rlogin without password

Enable rlogin between 2 or more servers


suppose there are 2 servers (server A and server B)

to allow rlogin between the 2 or more servers we need to do the following things

1. login to serverA.
2. make entry in /etc/hosts for the remote host i.e. serverB.
3. E.g. serverB 192.168.1.2 # the IP address 192.168.1.2 is of the serverB.
4. create a file /etc/hosts.equiv and make an entry in it for host i.e. serverB followed by the user. for the user from the host serverB who is allowed remote login access to the serverA.
5. E.g. serverB vijay #user vijay from the server serverB has remote login access to the local server serverA.


OR

1. login to serverB.
2. goto the user's home directory to whom rlogin access has to be given.
3. create a file $HOME/.rhosts
4. make the entry of the host name in this file i.e. the hostname whose access is to be allowed for the user. i.e. serverA


Anshumali
Esteemed Contributor

Re: rlogin without password

And why to use rlogin, which transferrers the data in non-secure way. Use password less SSH. Save your audit and be secure.Document attached for configuration.
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Anshumali
Esteemed Contributor

Re: rlogin without password

Sumit,
It was strange to see you record, "I have assigned points to 4 of 95 responses"
Dreams are not which you see while sleeping, Dreams are which doesnt allow you to sleep while you are chasing for them!!
Masud Parvez
Valued Contributor

Re: rlogin without password