在Debian系统中,要禁用Telnet服务,请按照以下步骤操作:
打开终端。
输入以下命令以停止Telnet服务:
sudo systemctl stop telnet.socket
sudo systemctl disable telnet.socket
/etc/hosts.deny
文件,添加以下内容:ALL: telnetd
/etc/hosts.allow
文件,添加以下内容(将your_ip_address
替换为您允许访问的IP地址):telnetd: your_ip_address
sudo reboot
现在,Telnet服务已在您的Debian系统中被禁用。