在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系统中被禁用。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读:Debian系统中Telnet为何被禁用