首先查看系统是否安装telnet服务包:
rpm -qa|grep telnet
若没有,安装:
[root@localhost ~]# rpm -ivh telnet-server-0.17-31.EL4.3.i386.rpm
warning: telnet-server-0.17-31.EL4.3.i386.rpm: V3 DSA signature: NOKEY,
key ID db42a60e
Preparing... ###########################################
[100%]
1:telnet-server ###########################################
[100%]
再次检查:
[root@localhost ~]# rpm -qa|grep telnet
telnet-0.17-31.EL4.3
telnet-server-0.17-31.EL4.3
因为telnet默认是关闭的,而且是不让root用户登入的,所以需要开启服务和另外
新建议个非root帐户。
[root@localhost ~]# cd /etc
[root@localhost etc]# cd xinetd.d
[root@localhost xinetd.d]# ls
chargen cups-lpd daytime-udp echo-udp gssftp krb5-telnet ktalk
telnet time-udp
chargen-udp daytime echo eklogin klogin kshell rsync
time
[root@localhost xinetd.d]# vi 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----------------(把yes改为no)
}
启动telnet服务命令:
由于telnet服务也是由xinetd守护的,所以安装完telnet-server,要启动telnet服务就必须重新启动xinetd
[root@localhost root]#service xinetd restart
或
[root@localhost root]#/etc/init.d/xinetd restart
阅读(2053) | 评论(0) | 转发(0) |