查看是否安装Telnet和依赖的Xinetd
rpm -qa | grep telnet
安装Xinetd
yum install xinetd
安装Telnet
yum install telnet
安装Telnet-Server
yum install telnet-server
telnet默认不开启,修改文件/etc/xinetd.d/telnet来开启服务 修改 disable = yes 为 disable = no,如果 telnet文件不存在可以手动创建 添加以下内容
service telnet
{
flags = REUSE
socket_type = stream
wait = no
user = root
server =/usr/sbin/in.telnetd
log_on_failure += USERID
disable = no
}
启动服务 telnet 和 xinetd
service xinetd restart
设置开机启动
systemctl enable xinetd.service
systemctl enable telnet.socket