telnet报Conection closed by foreign host

yangyinbo 2010-05-13 08:07:57
遇到问题:

trying 127.0.0.1
connected to 127.0.0.1
Escape charocther is '^]'
Conection closed by foreign host
...全文
17968 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
yangyinbo 2010-05-15
  • 打赏
  • 举报
回复
[Quote=引用 6 楼 itsgoodtobebad 的回复:]

你这个奇怪了,一天可以一天不可以。
一般来说看到connected to 127.0.0.1
Escape charocther is '^]'
就表示网络和telnet服务都没问题了的。

接着只能往权限什么的考虑了。或者是telnet服务出了问题。

如果你在不能使用root登录的机器上用root来telnet,就会出现同样的问题。

请问你可以的时候和不可以的时候,是不是……
[/Quote]

上面的信息在直接登录到系统中取到的,因为首先在本地机器上进行telnet 192.168.1.92时直接没有响应,所以登录到系统中进行查看,发现服务,端口,还有防火墙都是按我要求进行配置的,所以不存在一个用户可以,另一个用户不可以的问题
一品川 2010-05-15
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 steptodream 的回复:]
这些都有可能成为原因
telnet不可以的时候 系统设置是如何的 你保证和现在一样的么

linux一般都用ssh 不推荐使用telnet
[/Quote]学习下
白虹李李 2010-05-15
  • 打赏
  • 举报
回复
你这个奇怪了,一天可以一天不可以。
一般来说看到connected to 127.0.0.1
Escape charocther is '^]'
就表示网络和telnet服务都没问题了的。

接着只能往权限什么的考虑了。或者是telnet服务出了问题。

如果你在不能使用root登录的机器上用root来telnet,就会出现同样的问题。

请问你可以的时候和不可以的时候,是不是用的同样的用户登录的?
yangyinbo 2010-05-14
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 steptodream 的回复:]

这些都有可能成为原因
telnet不可以的时候 系统设置是如何的 你保证和现在一样的么

linux一般都用ssh 不推荐使用telnet
[/Quote]
保证一是样的配置
因为是用虚拟机
那天登录不了就怀疑是不是ip的问题
昨天一登录就好了,肯定没有改动
steptodream 2010-05-13
  • 打赏
  • 举报
回复
这些都有可能成为原因
telnet不可以的时候 系统设置是如何的 你保证和现在一样的么

linux一般都用ssh 不推荐使用telnet
yangyinbo 2010-05-13
  • 打赏
  • 举报
回复
suse

23端口正常,
telnet: on
time: off
time-udp: off
vnc: on

SuSEfirewall2_init 0:off 1:off 2:off 3:off 4:off 5:off 6:off
SuSEfirewall2_setup 0:off 1:off 2:off 3:off 4:off 5:off 6:off

昨天无法登录,今天又正常,想知道为什么

steptodream 2010-05-13
  • 打赏
  • 举报
回复
telnet服务配置好了吗?
防火墙允许了吗?
selinux设成无效了吗?
是什么系统?
Router#conf t Enter configuration commands, one per line. End with CNTL/Z. Router(config)#ho r12 r12(config)#ho r1 r1(config)#no ip do r1(config)#no ip domain-lo r1(config)#no ip domain-lookup r1(config)#line con 0 r1(config-line)#logg sy r1(config-line)#exec-t 00 r1(config-line)#exi r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)# r1(config)#int s1/2 r1(config-if)#ip add 12.1.1.1 255.255.255.0 r1(config-if)#no sh r1(config)#router ei 10 r1(config-router)#no au r1(config-router)#no auto-summary r1(config-router)#net 12.1.1.0 0.0.0.255 r1(config-router)# r1(config-router)# r1(config-router)# r1(config-router)# *Mar 1 00:06:38.539: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 10: Neighbor 12.1.1.2 (Serial1/2) is up: new adjacency r1(config-router)# r1(config-router)# r1(config-router)# r1(config-router)# r1(config-router)# r1(config-router)# r1(config-router)# r1(config-router)#end r1#telnet 23.1.1.2 *Mar 1 00:07:27.839: %SYS-5-CONFIG_I: Configured from console by console r1#telnet 23.1.1.2 Trying 23.1.1.2 ... Open User Access Verification Username: xiaoan Password: r3>en % No password set r3> r3> r3> r3>en Password: r3# r3# r3# r3# r3#exi [Connection to 23.1.1.2 closed by foreign host] r1# r1# r1# r1# r1# r1# r1# r1# r1# r1# r1# r1#telnet 23.1.1.2 Trying 23.1.1.2 ... Open User Access Verification Username: xiaoan Password: r3>exi [Connection to 23.1.1.2 closed by foreign host] r1# r1# r1# r1# r1# r1# r1# r1#telnet 23.1.1.2 Trying 23.1.1.2 ... % Destination unreachable; gateway or host down r1#telnet 23.1.1.2 Trying 23.1.1.2 ... % Destination unreachable; gateway or host down r1#ping 23.1.1.2 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 23.1.1.2, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 32/106/184 ms

19,619

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧