How to Disable Telnet access on the server
Telnet is not in used because of its greatest weakness. The biggest problems with telnet are that whatever text you type in is sent across the network essentially unchanged. This is a problem primarily because people typically need to log into the remote computer in order to use it with telnet. That means that their user name and password are both sent across the network in plain text.
And hackers can obtain these passwords easily as compared to SSH. TELNET server listens for incoming messages on port 23, and sends outgoing messages to port 23.
By default telnet packages get installed while installing the server. You can stop using telnet to your server using following steps
Login to your server as a root user.
search for the line: disable = no and replace it with disable = yes
Now restart the inetd service:
Make sure it is turned off through chkconfig as well.
#chkconfig telnet off
Scan your server to ensure port 23 is closed.
#nmap -sT -O localhost
# ps -aux | grep telnet
If you find anything other than “grep telnet” as result kill the process.
Your Profile can also be listed here, Want to share you Experience, become a TecGeeks Author Submit here
Latest posts by Rahul Kansi (see all)
- How to Monitor your Linux and Windows Servers with CloudStats - May 18, 2017
- How to protect your Server against the ransomware attack - May 16, 2017
- How to force a user to change his password upon next login? - April 28, 2017