Thursday, May 6, 2010

How to Disable Telnet

How to Disable Telnet

SSH into server and login as root.
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

Locate the following line:
disable = no

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

Save and exit.
Restart the inetd service by using the following command:
/etc/rc.d/init.d/xinetd restart

Turn off Telnet through chkconfig as well because it can still start through that:
/sbin/chkconfig telnet off

No comments:

Post a Comment