Centos7-安装telnet服务

1.执行安装语句

  • yum -y install telnet-server.x86_64
  • yum -y install telnet.x86_64
  • yum -y install xinetd.x86_64

2.设置开机自启:

  • systemctl enable xinetd.service
  • systemctl enable telnet.socket

3,开启service:

  • systemctl start telnet.socket
  • systemctl start xinetd

 4.编辑vi /etc/securetty 允许 root 账号登陆末尾添加两行

1 pts/0
2 pts/1
3 pts/2
注意: 允许3个为终端登陆,,,第四个就拒绝了

5.登陆成功

猜你喜欢

转载自www.cnblogs.com/powpoia/p/8950340.html