当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > 在RHEL 5上开启远程telnet

Unix/Linux
FreeBSD完全入门手册
FreeBSD中启用3D加速功能的方法
光盘安装OpenBSD3.6的方法
硬盘安装OpenBSD 3.6的方法
FreeBSD局域网内升级Ports Tree及Port的安装
FreeBSD 数据备份和迁移方法
让root用户telnet到FreeBSD的方法
OPENBSD-3.8上快速安装和配置apache+mysql+php+ssl
用OpenBSD 3.8 release自带的FTPD架设FTP服务器
freebsd 常用命令
FreeBSD系统SSH配置详解
FreeBSD 6.2用freebsd-update升级过程
FreeBSD双线负载均衡NAT服务器配置方法
FreeBSD系统下读写 NTFS分区
Freebsd7.0 Apache2.2+MySQL5+PHP5安装和配置方法
freebsd6.2 nginx+php+mysql+zend系统优化防止ddos攻击
FreeBSD5.2.1上建立功能完整的邮件服务器(POSTFIX)
FreeBSD学习经验
FREEBSD系统优化精华
FreeBSD su Sorry问题解决办法

Unix/Linux 中的 在RHEL 5上开启远程telnet


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2010-01-15   浏览: 73 ::
收藏到网摘: n/a

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了!