1753701 Members
4947 Online
108799 Solutions
New Discussion юеВ

can't use rlogin

 
SOLVED
Go to solution
peterchu
Super Advisor

can't use rlogin

I have two hosts - Host A and Host B , Host A can rlogin to host B but host B can't rlogin to host A ,

I have check the folloing

1. turn the rlogin on

/sbin/chkconfig --list rlogin
rlogin on

2. release ~userid/.rhosts to the remote user ( + + )

what is the other possibities that cause the rlogin can't work ? thx.
4 REPLIES 4
peterchu
Super Advisor

Re: can't use rlogin

it is OK now , please ignore it.

thx
Chris Saunderson
Frequent Advisor
Solution

Re: can't use rlogin

you REALLY do not want to do + + in .rhosts. That says any user from any machine can rlogin in.
Ted Nugent called. He wants his shirt back.
dirk dierickx
Honored Contributor

Re: can't use rlogin

don't use rlogin, but use ssh instead.

all r* commands are unsafe.
Ross Minkov
Esteemed Contributor

Re: can't use rlogin

1. Don't use rlogin/rsh/telnet, etc. Use ssh/scp, etc. instead!!!

2. Don't ever put + + in any .rhosts. Anyone from anywhere can rlogin/rsh/rcp.

3. If you sstill want to use .rhosts file then make sure you specify host account in it and then make sure its perms are set to 600.

Also make sure that you enabled rlogin on both systems (maybe you enabled it only on one of the systems and not the other, so it works only one way?).

Check /etc/securetty file. If not sure about it's syntax and only want to exclude it as a potential break point for rlogin, just rename it and try rlogin again.

Try enabling rsh too (using chkconfig) and try using it. It'n not much different from rlogin.

HTH.
Ross