1827677 Members
3449 Online
109967 Solutions
New Discussion

telnet don't work

 
Justo Exposito
Esteemed Contributor

telnet don't work

Hello,

I just installed a Mandrake 7.2 Linux box, and when I try to telnet from other machine I obtain the message "Conexion refused by host", but when from the linux box I do telnet to other box all works fine.

Somebody can help me?

Thanks in Advance.
Justo.
Help is a Beatiful word
4 REPLIES 4
Leandro Sales
Advisor

Re: telnet don't work

U have to discomment the line
#telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
from /etc/inetd.conf or similar and restart the inetd service. Check also the file /etc/hosts.allow, if you want accept just telnet connections (inetd services) use:
in.telnetd: ALL
or
in.telnetd: xxx.xxx.xxx. from a network
or
in.telnetd: xxx.xxx.xxx.xxx
you can use both too...

Ok?

Leandro.
Leandro Sales
Advisor

Re: telnet don't work

You can use both separated by (,):

in.telnetd: xxx.xxx.xxx., xxx.xxx.xxx.xxx

where xxx.xxx.xxx. for a network and xxx.xxx.xxx.xxx for IP address.

Leandro.
Eugen Cocalea
Respected Contributor

Re: telnet don't work

Hi,

I suppose Mandrake 7.2 uses xinetd. If so, in /etc/xinetd.d/telnet, you have a line like:

disable = yes

it's the default for most of the daemons. Change it to 'no' and /etc/rc.d/init.d/xinetd restart

E.
To Live Is To Learn
Santosh Nair_1
Honored Contributor

Re: telnet don't work

Correct me if I'm wrong, but I was under the impressions that Mandrake doesn't install telnetd by default instead relying on using sshd. Check to see if telnetd is installed on your system (rpm -qa |grep telnetd). If its installed then check that the daemon is set up to start by xinetd as mentioned above. You can also see if xinetd is listening on port 21 (netstat -na|grep 21|grep LISTEN).

Hope this helps.

-Santosh
Life is what's happening while you're busy making other plans