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.
Custom Search

New Articles

Incoming Search Terms for the Article

linux disable telnet - disable telnet linux - how to disable telnet port 23 in linux - how to disable telnet in linux - linux telnet disable - configure telnet on linux - disable telnet service onlinux - turning off telnet in linux - turning off telnet service in linux - disable telnet dreambox - disable telnet suse linux - disable telnet access on linux - disable telnet on linux - ubuntu disable telnet - how to disable telnet linux - disable telnet as root - linux disabilita telnet - turn off telnet linux 5.3 - turn off telnet - turn off telnet on linux - activate telnet in linux - disabling root login with telnet +linux - linux disable telnet server - turn on telnet linux how - how to turn telnet off - how to enable telnet on suse linux - linux telnet turn on ubuntu - turn linux service on/off - tuening off telnet in linux - unable to telnet in linux 5.3 - enable telnet dreambox - linux configure telnet access - activate telnet in dreambox - allow incoming telnet suse server - how to disable linux telnet service - linux diable pty telnet - manually switch off telnet - telnet linux - telnet linux disabilitare - disable telnet on suse - disable telnet suse - disable telnet in SUSE - disable linux telnet - how to configure telnet on linux - how to disabled telnet service in linux - linux uninstall telnet - Linux enable disable console ports - port 23 turn off - disable telnet cpanel linux - how to disable telnet in linux + example -