Skip to main content

Remediation Steps

Follow the steps below to remediate this finding on Linux (Debian/Ubuntu).

  1. Disable and remove the Telnet server:

    sudo systemctl stop telnet.socket inetd 2>/dev/null
    sudo systemctl disable telnet.socket inetd 2>/dev/null
    sudo apt purge telnetd telnetd-ssl xinetd 2>/dev/null
  2. Ensure SSH is installed and accessible as the encrypted alternative:

    sudo apt install openssh-server
    sudo systemctl enable --now ssh
  3. Verify Telnet port (23) is blocked in the firewall:

    sudo ufw deny 23