Cent OS telnet: connect to address Connection refused

yum install xinetd
yum install telnet


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

By simplemsexchange Posted in Linux

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s