1、安装 telnet telnet-server xinetd
yum -y install telnet telnet-server xinetd
2、设置开机自启,并启动
systemctl enable xinetd.service --now
systemctl enable telnet.socket --now
3、配置终端,在配置文件中追加如下内容:
vi /etc/securetty
pts/0
pts/1
4、重启xinetd
systemctl restart xinetd
5、查看端口是否开启
[root@localhost ~]# netstat -lntp |grep 23
tcp6 0 0 :::23 :::* LISTEN 1/systemd
网友评论