Disable and Turn Off Telnet in Linux

Telnet is an unsecured network protocol that facilitates remote login to a server via network connection. The protocol allows server to be located thousands of miles away from the administrator yet still can be managed even without physical console access. However, Telnet has slowly replaced with SSH (Secure Shell) protocol due to security risks as the data transmission packet, including login username and password for Telnet is unencrypted, allowing hackers or crackers to easily sniff and obtain these information easily.

So it’s a good practice to disable Telnet service on server, especially web server which reachable from Internet, and replaced with SSH. For web servers that are subscribed from some web hosting providers has Telnet disabled by default. Webmasters or system administrators can verify if the Telnet service is turned off. If it’s still running, the following guide will provide steps to disable and turn off Telnet service. Telnet server listens for incoming messages on port 23, and sends outgoing messages to port 23.

How to Disable Telnet

  1. SSH into server and login as root.
  2. At shell command prompt type the following command and press Enter. This example use pico to edit text file, you can use vi or other text editor if you want.

    pico -w /etc/xinetd.d/telnet

  3. Locate the following line:

    disable = no

    Change the “disable = no” to “disable = yes” (no to yes).

  4. Save and exit.
  5. Restart the inetd service by using the following command:

    /etc/rc.d/init.d/xinetd restart

  6. Turn off Telnet through chkconfig as well because it can still start through that:

    /sbin/chkconfig telnet off

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

linux disable telnet - disable telnet linux - how to turn off telnet linux - how to enable telnet in linux - disable telnet in linux - how disable telnet in linux - linux disable telnet service - command to turn off telnet - how do I disable telenet on a linux server - telnet disabled - blocking telnet and ftp access on linux - how to disable telnet in linux - telnet still running when disabled in xinetd - disable telnet server linux - how to disable telnet on linux - telnet off - turning telnet off on Linux - how to disable telnet linux - disable telnet service linux - dm500 telnet - telnet turn off - ctivating telnet service in linux - dreambox linux console - enable or disable telnet services in Linux - how to enable the telnet in montavista linux - HOWTO linux + telnet + sony ericsson - how to disable a service in linux - how to enable and disable telnet in linux server - linux telnet service turn off - disable telnet port on windows - firefox 3.5.5 telnet linux - how to disable telnet on RHEL through webmin? - linux turn off telnet - how disable the telnet in Linux - linux+disable remote telnet - telnet service enable in linux - chkconfig disable telnet pico xinetd - linux telnet finish - linux how to disable telnet - activated service telnet linux - desactivate telnet linux - how to activate telnet in linux - turn off firewall on port 23 linux - disable domain login for telnet on linux - enabling dreambox dm500s for LG remote control - how to turn off telnet - disable telnet RH linux - enable telnet access in linux - linux turn off telnetd - TELNETD disable linux -