在 Ubuntu 上“查看 telnet”通常有两种含义,下面分别说明:
which telnet
或
telnet --version
command not found 说明未安装dpkg -l | grep telnetd
或
systemctl status inetd
(telnet 服务通常由 openbsd-inetd 或 telnetd 提供)
sudo apt update
sudo apt install telnet
sudo apt install telnetd
或
sudo apt install openbsd-inetd
netstat -tulnp | grep 23
或
ss -tulnp | grep 23
systemctl status openbsd-inetd
telnet 目标IP 端口
例如:
telnet 192.168.1.10 23
telnet www.baidu.com 80
ssh user@ip
如果你是想“查看 telnet 登录记录”或“排查 telnet 无法连接”,可以告诉我具体场景。