How to disable Telnet and Other Unused Service

Steps:

1. Login to server as root

2. vi /etc/xinetd.d/telnet
// OR

3. vi /etc/xinetd.d/krb5-telnet
look for lines disable=no and change to disable=yes

4. chkconfig telnet off

5. service xinetd restart