windows 尽管服务器和客户端都打开,但 telnet 无法正常工作
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11739977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
telnet not working though server and client are on
提问by Avinash Kumar
i use a pc with windows 7.i tried to telnet to another host but it didn't work even though the host had enabled telnet server and i had enabled the client.So, i enabled telnet server on my pc and telnet to my pc. But this too failed with the error
我使用一台装有 Windows 7 的电脑。我试图 telnet 到另一台主机,但即使主机启用了 telnet 服务器并且我启用了客户端,它也不起作用。所以,我在我的电脑上启用了 telnet 服务器并 telnet 到我的电脑. 但这也因错误而失败
Connecting To 172.17.4.155...Could not open connection to the host, on port 23:
Connect failed
Then i checked the tcpdump with ubuntu on a virtual machine. The dump said that connection closed with a reset flag sent. So, i checked if there was telnet server listening on port 23, using 'netstat -a' on windows. There was no server listening on port 23. This is weird because in control panel's Programs and Featuresit says that client and server both are runnning.
然后我在虚拟机上用 ubuntu 检查了 tcpdump。转储表示连接已关闭,并发送了重置标志。因此,我在 Windows 上使用“ netstat -a”检查了是否有 telnet 服务器侦听端口 23 。没有服务器侦听端口 23。这很奇怪,因为在控制面板的程序和功能中,它说客户端和服务器都在运行。
Can anyone tell me what is the problem?
谁能告诉我是什么问题?
回答by Debopam Sutradhar
Click Start, and then click Control Panel.
单击开始,然后单击控制面板。
On the Control Panel Home page, click Programs.
在控制面板主页上,单击程序。
Under the section titled Programs and Features, click Turn Windows features on or off.
在标题为程序和功能的部分下,单击打开或关闭 Windows 功能。
If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
如果出现“用户帐户控制”对话框,请确认它显示的操作是您想要的,然后单击“继续”。
In the Windows Features list, select Telnet Server, and then click OK.
在 Windows 功能列表中,选择 Telnet 服务器,然后单击确定。
回答by Avinash Kumar
Thank you sir for the help....But the problem was something else...What really was happening that though the telnet server was installed, it was off in the services i.e. it was disabled...Open the services using task manager and there click on services tab...then go to telnet and change its type to manual and start the service
谢谢先生的帮助....但问题是其他问题...虽然安装了 telnet 服务器,但它在服务中处于关闭状态,即它被禁用...使用任务管理器打开服务然后单击服务选项卡...然后转到 telnet 并将其类型更改为手动并启动服务