在Debian系統中,Telnet服務默認是關閉的
sudo apt-get update
sudo apt-get install telnet
sudo systemctl status telnet
如果服務未運行,你會看到類似 “inactive (dead)” 的輸出。
sudo systemctl start telnet
sudo systemctl enable telnet
sudo systemctl status telnet
命令確認服務已啟動并運行。請注意,Telnet協議存在安全風險,因此在某些情況下,建議使用更安全的替代方案,如SSH。要在Debian系統中安裝SSH服務器,請使用以下命令:
sudo apt-get update
sudo apt-get install openssh-server
然后按照上述步驟檢查和啟動SSH服務。