Disable Telnet in Linux Hpw To

Digg this

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.

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

Related Posts by Categories



Widget by Scrapur | Scrap Book

0 comments: