一、本地安装telnet客户端
二、服务端:
1、安装软件:
yum -y install telnet-server xinetd
2、启动服务:
systemctl start xinetd
systemctl start telnet.socket
3、测试:
netstat -nutlp | grep 23

三、测试远程
使用root用户无法登录,新建用户可以远程登录

四、使用root用户登录。
tail /var/log/secure 查看日志如下:

解决办法
vim /etc/securetty 加入 pts/2

重启服务
systemctl restart xinetd
systemctl restart telnet.socket
使用root测试远程

Post a new comment