telnet 连接失败:连接被外部主机关闭

sun*_*nny 5 linux telnet bash ubuntu

我尝试使用 telnet 连接到本地主机:

% telnet localhost 6311
Run Code Online (Sandbox Code Playgroud)

此连接成功,但是当我通过计算机的外部 IP 连接时,连接失败:

% telnet x.x.x.x 6311
Trying x.x.x.x...
Connected to x.x.x.x
Escape character is '^]'.
Connection closed by foreign host.
Run Code Online (Sandbox Code Playgroud)

可能有什么问题?

sun*_*nny 3

问题出在服务(在 6311 上运行)上,该服务未配置为支持远程访问。

这意味着,telnet 没问题:)