安装telnet和xinetd
yum –y install telnet-server
yum –y install telnet
yum install xinetd.x86_64
开机启动
systemctl enable xinetd.service
systemctl enable telnet.socket
重启
systemctl start telnet.socket
systemctl start xinetd
默认Root无法远程访问,因此需要修改以下配置文件/etc/securetty
vi /etc/securetty
在末尾添加
pts/0
pts/1
添加防火墙
firewall-cmd --permanent --list-port
firewall-cmd --permanent --add-port=23/tcp
firewall-cmd --reload
网友评论