Portal Home > Knowledgebase > Articles Database > telnet: connect to address 127.0.0.1: Connection refused


telnet: connect to address 127.0.0.1: Connection refused




Posted by relaxiha, 10-14-2009, 06:07 PM
Hello. How do I solve this problem Please help me see exactly how to do connect localhost os : CENTOS 5.3 i686 standard on server

Posted by dexxtreme, 10-14-2009, 07:12 PM
In this day and age almost no server on the Internet (outside of a few specialized situations) has any need to run a "telnet" server. Unless you explicitly enabled the telnet server, this will always fail. The real question is, what exactly are you trying to do?

Posted by nomankhn, 10-14-2009, 10:56 PM
As earlier posted, telnet is not good, if you are testing something then please follow this. 1. vi /etc/xinetd.d/telnet 2. you will see file like that, you will see last line disable, replace disable = yes to disable = no and save file. service telnet { flags = REUSE socket_type = stream wait = no user = root server = /usr/sbin/in.telnetd log_on_failure += USERID disable = yes (need to replace with no) } 3. restart xinetd service # /etc/init.d/xinetd restart 4. if it still not work, then iptables is blocking that, you need to flush iptables or turn off service like # iptables -F # iptables -X # /etc/init.d/xinetd stop I am sure now your telnet got connected.

Posted by eth10, 10-15-2009, 03:55 AM
Can you tell which port are you tying to telnet ?

Posted by Alistair Smith, 10-15-2009, 07:21 AM
Which port you are trying to telnet or simply paste the command that you are trying.

Posted by relaxiha, 10-17-2009, 08:42 PM
vi /etc/xinetd.d/telnet [~]# restart xinetd service -bash: restart: command not found [~]# /etc/init.d/xinetd restart -bash: /etc/init.d/xinetd: No such file or directory # iptables -F hang putty

Posted by TheServerExperts, 10-17-2009, 10:22 PM
By default Centos has Telnet disabled.

Posted by relaxiha, 10-17-2009, 10:45 PM
plz help me with command

Posted by nomankhn, 10-18-2009, 01:03 AM
Dear sir, You should check again what i posted last time, second if you are checking with root and xinetd not install then you need to install it. yum install xinetd If you are still unable to resolve issue, private message me, i am happy to resolve your issue free of cost.

Posted by eth1, 10-18-2009, 03:17 AM
Just FYI, telnet server should not be running and used on production machines. Use SSH for remotely logging into servers as telnet is insecure and the username and password sent goes in clear text. SSH is encrypted traffic and username and password does not go in clear text.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
HiVelocity down? (Views: 670)
nac.net down? (Views: 683)
Adiungo down?? (Views: 643)

Language: