分类: LINUX
2006-11-06 11:35:26
# telnet 10.133.128.70
Trying 10.133.128.70...
Connected to zxj_db1 (10.133.128.70).
Escape character is '^]'.
Unencrypted connection refused. Goodbye.
Connection closed by foreign host.
看错误信息好像是说的为加密的连接被拒绝,查看了他的配置文件也没发现有什么关于加密的选项,而且配置文件也很正确,于是到google上去搜索了一大圈,最后终于找到一个老外写的一个解决方法:
I really needed a bit of guidance and you provided it.
/sbin/chkconfig --list |grep telnet
The above command told me I had both krb5-telnet and ekrb5-telnet, and
also the installed telnet all on. Initially I did not know what they
were all for. After turning them on and off and testing my telnet
connection from another box I realised that "ekrb5-telnet" was the
encrypted telnet server that I needed to turn off to run "krb-telnet"
which allowed non-encrypted telnet connections.
eg /sbin/chkconfig ekrb5-telnet off
Thanks for your help.
原来在系统里面把ekrb5-telnet这个服务也启动了,ekrb5-telnet是一个需要加密的telnet服务,把这个服务启动上当然就需要加密了。
解决方法:
将/etc/xinetd.d/ekrb5-telnet里面的disable改成=yes,再重启xinetd服务就OK了!