Linux踢出其他正在SSH登陆用户

1、查看系统在线用户 

[root@testdb ~]#w

2.查看哪个属于此时自己的终端(我开了两个连接)

[root@testdb ~]# who am i

3.pkill掉自己不适用的终端

[root@testdb ~]# pkill -kill -t pts/1

pts/1是其他用户名

pkill -9 -t pts/1

原文地址:https://www.cnblogs.com/hanlong/p/5761519.html