CentOS6.5安装telnet

时间:2023-03-09 19:05:20
CentOS6.5安装telnet
原文地址:http://www.cnblogs.com/zhongshengzhen/
1、检查是否已经安装telnet
[root@localhost ~]# rpm -qa | grep telnet
2、安装telnet及telnet-server
[root@localhost ~]#  yum install telnet
[root@localhost ~]# yum install telnet-server
3、因为装好telnet服务之后,默认是不开启服务的,下面我们需要修改文件来开启服务。
[root@localhost ~]# vi /etc/xinetd.d/telnet
修改 disable = yes 为 disable = no 
service telnet
{
        flags           = REUSE
        socket_type     = stream
        wait            = no
        user            = root
        server          = /usr/sbin/in.telnetd
        log_on_failure  += USERID
        disable         = no
}
4、需要激活xinetd服务
[root@localhost ~]# service xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [  OK  ]
[root@localhost ~]# service xinetd restart
Stopping xinetd: [  OK  ]
Starting xinetd: [  OK  ]
5、需要测试telnet是否成功开启