Skip to content

December 24, 2010

Disable Services in Linux

Disable Telnet

In older Linux distributions the telnet system is enabled by default. Ftp, rlogin and telnet are vulnerable to eavesdropping that’s why it is recommended to use the secure versions. (sftp,scp, ssh). If you want for any reason to use the telnet terminal you should at least hide the banner information although it is not recommended to use telnet at all.

How To:

Login to your machine as root user, and edit the file,

vi /etc/xinetd.d/telnet

Change the following line

Look for the line: disable = no and replace with disable = yes

To reflect the changes restart the inetd service,

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

To turnoff the telnet service permenently use the chkconfig command

/sbin/chkconfig telnet off

Scan your machine to make sure that the telnet is disabled and no service is running on port:23 completely,

nmap -sT -O localhost
Read more from Linux

Leave a comment

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments