1821826 Members
3495 Online
109638 Solutions
New Discussion юеВ

rlogin error

 
logaraman
Regular Advisor

rlogin error

Hi ,

When i try to r ogin to the local host, i get the below error..

"[root@TESTDB etc]# rlogin TESTDB
connect to address 10.81.5.77: Connection refused
Trying krb4 rlogin...
connect to address 10.81.5.77: Connection refused
trying normal rlogin (/usr/bin/rlogin)

Any suggestion pls
11 REPLIES 11
Jaime Bolanos Rojas.
Honored Contributor

Re: rlogin error

Logaraman,

Please check this file and the is not disable:

/etc/xinetd.d/rlogin

disable = no

IF it's then make the changes and save, then restart the xinetd service.

Regards,

Jaime.
Work hard when the need comes out.
Ivan Ferreira
Honored Contributor

Re: rlogin error

I would suggest the use of SSH with public keys instead of rlogin. It's better to disable this service on the servers for security reasons.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
logaraman
Regular Advisor

Re: rlogin error

Hi ,

the rlogin is set to disable=no on the xinetd.d dir..

Any suggestions pls

Re: rlogin error

Is xinetd running?

If it is, check if the system is listening on the login port.

Use 'netstat -a |grep LISTEN' to see what ports the system is listening on.
logaraman
Regular Advisor

Re: rlogin error

pls find below the output of the command



tcp 0 0 *:32769 *:* LIST
N
tcp 0 0 *:sunrpc *:* LIST
N
tcp 0 0 *:ftp *:* LIST
N
tcp 0 0 *:telnet *:* LIST
N
tcp 0 0 localhost:ipp *:* LIST
N
tcp 0 0 localhost:smtp *:* LIST
N
tcp 0 0 *:ssh *:* LIST
N
unix 2 [ ACC ] STREAM LISTENING 6409 /dev/gpmctl
unix 2 [ ACC ] STREAM LISTENING 6506 /tmp/.font-unix/fs7100
unix 2 [ ACC ] STREAM LISTENING 8313 /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 9224 /tmp/ssh-ExmaDf3924/age
t.3924
unix 2 [ ACC ] STREAM LISTENING 5964 /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 8242 /tmp/.gdm_socket
unix 2 [ ACC ] STREAM LISTENING 6657 /var/run/dbus/system_bu
_socket

Re: rlogin error

Looks like the system is not listening for connections on the login port. Did you restart xinetd after making changes to /etc/xinetd.d/rlogin ?

Did you install the rsh-server package?

- Alex
logaraman
Regular Advisor

Re: rlogin error

No changes were done on the rlogin file on xinetd.d dir..

Also no packages were installed

Re: rlogin error

Yes, but is the rsh-server package installed?

'rpm -qil rsh-server'

That package contains the rlogin server binary.

If it is, try restarting xinetd and check your logs for errors. You might also want to try removing and reinstalling the rsh-server package.

- Alex
logaraman
Regular Advisor

Re: rlogin error

hi

Will try re-installing the package and keep you updated
Atul Gautam
Valued Contributor

Re: rlogin error

Hi,

As Ivan has suggested, use SSH with public keys rather than using "rlogin" as it is not that much secured.



--
ATUL
dirk dierickx
Honored Contributor

Re: rlogin error

why would you need rlogin?