1.操作系统 Redhat
Step1:修改配置文件/etc/xinetd.d/telnet 中配置项disable为no。(系统安装的默认值一般是yes)
[root@localhost ~]# cat /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 = no
}
Step2:通常情况下,linux考虑到安全问题,不但telnet服务是关闭的,而且也不允许使用root用户进行telnet操作。
因此需要修改/etc/securetty ,在后面添加pts0...pts(n-1)(加一个pts0表示允许一个root telnet登录,加到pts(n-1)表示允许n个root telnet登录)
[root@localhost ~]# cat /etc/securetty
console
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
pts/0
pts/1
pts/2
pts/3
pts/4
pts/5
Step3:配置文件都修改好后,接着就是重启相关的服务。执行命令:service xinetd restart
参考资料:http://blog.chinaunix.net/uid-20388009-id-1952798.html