在Linux系统中,Telnet服务的默认端口是23。以下是对该端口的详细解释:
/etc/xinetd.d/telnet
或/etc/inetd.conf
。如果你希望禁用Telnet服务,可以使用以下命令之一:
sudo systemctl stop telnet.socket
sudo systemctl disable telnet.socket
或者,如果你是通过xinetd
管理Telnet服务:
sudo systemctl stop xinetd
sudo systemctl disable xinetd
总之,虽然Telnet服务的默认端口是23,但在实际应用中应尽量避免使用它,并优先考虑采用更安全的通信方式。
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>