1 环境
centos 7
yum已配置好
网络连接正常
2 检查是否已安装相关软件
rpm -qa|grep telnet
3 安装相关组件
yum install xinetd
yum install telnet
yum install telnet-server
4 设置telnet自启动
systemctl enable telnet.socket
systemctl start telnet.socket
systemctl enable xinetd
systemctl start xinetd
5 关闭防火墙(7默认没有iptables,默认是firewall防火墙)
systemctl stop firewalld.service
systemctl disable firewalld.service
6 允许root用户登录
vi /etc/securetty
末尾添加两行:
pts/0
pts/1
done!