Red hat AS4开启telnet过程开启过程
1、确定你的xinetd服务打开没有:
[root@db-rman ~]# chkconfig --list |grep xinetd
xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
xinetd based services:
注意检查结果这里是开启状态(因为telnet服务是xinetd服务的一个子服务)
2、修改文件
vi /etc/xinetd.d/telnet
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
# disable = yes
disable = no //原来的yes改成no
}
3、开机启动telnet服务:
检查已经被打开了
[oracle@db-rman admin]$ chkconfig --list |grep telnet
telnet: on
krb5-telnet: off
4、修改登陆文件securetty,主要增加要登陆的终端点
[root@db-rman ~]# vi /etc/securetty
增加几个pts/x:
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
……
保存退出:
5、测试登录:
[oracle@db-rman admin]$ telnet 192.168.0.253
Trying 192.168.0.253...
Connected to db-rman (192.168.0.253).
Escape character is '^]'.
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
Kernel 2.6.9-67.ELsmp on an x86_64
login: root
Password:
Last login: Tue Aug 19 14:00:10 from 192.168.0.222
[root@db-rman ~]#
测试登陆正常,如果说像其他的外界因素的影响,请先排除外界的,比如:iptables和selinux。