在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系統中被禁用。