telnet 是一个网络协议,用于在Internet或局域网上的设备之间进行双向交互式文本通信
以下是 telnet 命令输出的一些常见部分:
telnet 会话:当您输入 telnet 命令并按回车键时,您将看到类似以下的输出:Trying xxx.xxx.xxx.xxx...
Connected to example.com.
Escape character is '^]'.
这表示您已成功连接到目标服务器(在本例中为 example.com)。
login: your_username
Password:
your_username@example.com's password:
$
$ ls
Desktop Downloads Pictures Templates
Documents Music Public Videos
telnet 会话:要退出 telnet 会话,您可以输入 exit 命令或按 Ctrl + ] 组合键,然后输入 quit 命令。例如:$ exit
Connection closed by foreign host.
这表示您的 telnet 会话已关闭,您已断开与目标服务器的连接。
请注意,许多系统已不再默认安装 telnet 客户端,因为它不安全。相反,建议使用更安全的替代方案,如 SSH。