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

posted @ 2018-04-26 11:14  MoStart  阅读(1879)  评论(0编辑  收藏  举报