telnet localhost: connnection refused

Posted on 2004-11-07
Last Modified: 2010-03-18
telnet localhost: connnection refused, cant telnet in my debian system.

How do I fix this?

Funny, this is that Ive set up my apache webserver and its working fine.  Also, I can ssh into my computer remotely too.

I have opened up ports 21, 22, 25, and 80 already.

Question by:tongueroo
    LVL 38

    Expert Comment


       You need to edit /etc/inetd.conf to enable the telnetd on your Debian machine. Then restart the inetd.

       By the way, since you can ssh into your Debian, why do you need telnet? ssh is much better than telnet
    in security and feature (such as ssh can forward Xsession which telnet can't). ssh is highly recommended.


    Author Comment

    My real problem is that I can't send up an email server, and thought that this might have something to do with it.

    Thanks, I'll try it.

    Author Comment

    I dont see an uncommented telnetd enrty in the /etc/inetd.conf file at all, so what do I have to type in there?
    LVL 38

    Accepted Solution

    Well, for security reason, the in.telnetd is not installed with the base system on Debain woody.
    You can install it with "apt-get install telnetd".

    However, the mail server is nothing to do with telnetd.


    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    Suggested Solutions

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now