Wednesday, August 19, 2009

telnet server does not work

我設定好telnet server之後,

在console中打一行命令
telnet 127.0.0.1
卻不能telnet上,查了很多地方,防火牆也關掉,找不出任何原因
當然更不能從遠端telnet進來我這邊的機器

最後,原來是/etc/hosts檔案稿的鬼

這樣是ok的

[host etc]$ cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost xxxxxx


但是這樣卻不行

[host etc]$ cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost


原來是少了 xxxxxx 這字串,真是~!@#$%^&*()....
害我找了很久

No comments:

Post a Comment