1、安装软件包
xinetd-2.3.10-6.i386.rpm 在RHL第一张光盘里
telnet-server-0.17-25.i386.rpm 在RHL第三张光盘里
先将这两个软件包拷贝到到Fedora 8中的/root/RPM/目录中,再安装:
# cd /root/RPM
# rpm -ivh xinetd-2.3.10-6.i386.rpm
# rpm -ivh telnet-server-0.17-25.i386.rpm
(在这个地方,也可以用fedora 8下面的添加和删除程序,在serch里面找到telnet、vsftp安装)
2、修改配置
# cd /etc/xinetd.d
# vi telnet
找到 disable = yes 将 yes 改成 no,内容如下:
# 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
#disable = yes
}
3、启动telnet服务
# chkconfig xinetd on
# service xinetd start
4、允许root用户登入
# cd /etc
# mv securetty securetty.bak
5、测试telnet服务
# telnet 127.0.0.1
Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
Fedora release 8 (Werewolf)
Kernel 2.6.23.1-42.fc8 on an i686
login: root
Password: ********
Last login: Thu Aug 14 11:18:54 from 192.168.1.5
[root@localhost ~]# exit
Connection closed by foreign host.
[root@localhost ~]#