实例解析:在RHEL 5上telnet的开启过程

系统 Linux
原来ekrb5-telnet是一个需要加密的telnet服务,把这个服务启动上当然就需要加密了。解决方法:将/etc/xinetd.d/ekrb5-telnet里面的disable改成=yes,再重启xinetd服务service xinetd restart就OK了!

1、确定你的telnet服务打开没有:

[root@111 ~]# chkconfig --list|grep telnet

ekrb5-telnet: off

krb5-telnet: off

[root@111 ~]#

注意检查结果这里是关闭状态

2、打开telnet服务:

[root@111 ~]# chkconfig krb5-telnet on

[root@111 ~]# chkconfig --list|grep telnet

ekrb5-telnet: offv

krb5-telnet: on

[root@111 ~]#

检查已经被打开了

3、修改登陆文件securetty,主要增加要登陆的终端点

[root@111 ~]# vi /etc/securetty

增加如下几行:

pts/1

pts/2

pts/3

pts/4

pts/5

……

保存退出即可。

如果是chkconfig krb5-telnet on

会提示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 telnetThe above command told me I had both krb5-telnet and ekrb5-telnet, andalso the installed telnet all on. Initially I did not know what theywere all for. After turning them on and off and testing my telnetconnection from another box I realised that "ekrb5-telnet" was theencrypted telnet server that I needed to turn off to run "krb-telnet"which allowed non-encrypted telnet connections.eg /sbin/chkconfig ekrb5-telnet offThanks for your help.

原来ekrb5-telnet是一个需要加密的telnet服务,把这个服务启动上当然就需要加密了。解决方法:将/etc/xinetd.d/ekrb5-telnet里面的disable改成=yes,再重启xinetd服务service xinetd restart就OK了!

【编辑推荐】

  1. 红帽公布RHEL5.4
  2. 产品发布:红帽发布RHEL 5.4 Beta版问世
  3. 红帽RHEL5.4包含了支持SPICE协议的KVM
责任编辑:赵宁宁 来源: zzit
相关推荐

2009-09-03 13:50:31

AudacityRHEL5源码编译

2010-07-22 09:32:30

ekrb5-telne

2011-02-15 10:09:40

SELinuxRHEL5Web服务器

2010-05-12 21:21:43

DNS服务RHEL5

2009-10-14 09:38:45

linux telne服务开启linux

2023-08-28 16:01:17

LinuxRHEL网络绑定

2010-07-22 12:54:15

开启telnet服务

2009-10-10 14:03:44

RHEL5 DNS配置

2009-10-12 11:24:10

RHEL 5防火墙

2009-10-10 17:29:00

RHEL 5搭建Sam

2010-05-17 15:53:25

Subversion服

2010-07-20 15:05:05

telnet邮件

2010-07-19 15:04:55

win2000 Tel

2009-10-12 16:23:17

RHEL4上安装Ora

2010-07-20 10:57:02

Telnet会话

2010-07-20 16:19:46

配置Telnet服务

2010-07-15 11:03:23

Windows Vis

2010-07-15 15:01:14

telnet服务配置Kerberos

2010-07-20 16:58:59

2009-10-12 12:45:36

RHEL5 Squid
点赞
收藏

51CTO技术栈公众号