How to Disable Telnet Access on Server

May 9, 2024 / How-to Guide

Disabling Telnet access on a server improves security by alleviating the risk of unauthorised access and potential misuse due to Telnet’s lack of encryption and susceptibility to interception.

Let us follow the steps:

  1. Log in to your server as the root user.
  2. Open the configuration file using vi-
     vi /etc/xinetd.d/telnet
  3. Locate the line- disable = no and change it to disable = yes.
  4. Restart the inetd service-
    /etc/rc.d/init.d/xinetd restart
  5. Disable Telnet using chkconfig to stop it from starting-
    /sbin/chkconfig telnet off
  6. Confirm port 23 is closed by scanning your server-
    nmap -sT -O localhost
  7. Additionally, check for any Telnet processes using ps -aux | grep telnet and terminate them if found.

In this manner, you can disable telnet access on the server. If you run into any difficulty, feel free to contact our support team.

Spread the love