telnet port 23

My linux version is 2.6.18-194.e14 (Oracle enterprise linux).

Could you please tell me how to enable telnet on the server.
When I try to connect the server through another pc using telnet it is throwing error.

Connecting To <ip address>...Could not open connection to the host, on port 23.

So I edit the /etc/sysconfig/iptables and add a line like this.

-A RH-FIrewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j ACCEPT.

And restarted the iptables service. But still the port is not open yet(lsof -i -n -P doesn't show the port as open).

Thank you for your help.

Telnet runs as a xinetd service in Linux 2.6* kernels. Please find the file /etc/xinet.d/krb5-telnet

In the file you would find that telnet is disabled by default.

change

                  disable   no

then

service xinetd restart

chkconfig telnet on

chkconfig --list|grep telnet

Please be informed that telnet is unsecure and that is the reason it is disabled by default.Using ssh would be more viable.

Syed

Another vote for disable telnet and use SSH as nature intended.

Thank you guys.