2.2.4 Ensure telnet client is not installed
Audit
Verify inetutils-telnet & telnet are not installed. Use the following command to provide the needed information:
# dpkg-query -l | grep -E 'telnet|inetutils-telnet' &>/dev/null && echo "telnet is installed"
Nothing should be returned.
Run the following commands to uninstall telnet & inetutils-telnet:
# apt purge telnet
# apt purge inetutils-telnet