【基础】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 账号登陆末尾添加两行

pts/0

pts/1

pts/2

注意:允许3个终端登陆,第四个就拒绝了

强踢掉用户

1.查询who

2.pkill -kill -t pts/0


数据运维技术 » 【基础】Centos7系统下如何安装telnet服务