Kick Other SSH Clients on Linux

Show Online Users:

[root@test ~]# w

00:41:47 up 15 min,  2 users,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    162.16.16.155    00:28    8:42   0.07s  0.07s -bash
root     pts/1    1162.16.16.156   00:41    0.00s  0.02s  0.00s w

Show which is this connected client:

[root@test ~]# who am i

root pts/0 2013-12-31 14:30 (162.16.16.155)

pkill others:

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

Check again:

[root@test ~]# w

00:42:12 up 16 min,  1 user,  load average: 0.00, 0.00, 0.00
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    162.16.16.155   00:28    4.00s  0.02s  0.00s w

Notice:

If the other users are not disconnected, I suggest you kill the connection forcely:

[root@test ~]# pkill -9 -t pts/1