检查是否安装了telnet服务
[root@localhost jingpan]# rpm -qa | grep telnet
若返回为空,则证明没有安装
YUM 安装
[root@localhost jingpan]# yum install telnet-server telnet
启动telnet服务
编辑/etc/xinetd.d/telnet文件,将disable 改为no
[root@localhost jingpan]# vim /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
}
[root@localhost jingpan]# service xinetd restart
停止 xinetd: [失败]
正在启动 xinetd: [确定]
设置telnet 服务开机自启动
[root@localhost jingpan]# chkconfig telnet on
来源:CSDN
作者:whatday
链接:https://blog.csdn.net/whatday/article/details/104429900