[root@localhost ~]# w --查看有哪些用户在登陆
17:15:00 up 1 day, 19:23, 3 users, load average: 0.12, 0.10, 0.09
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 10.224.70.43 16:52 0.00s 0.03s 0.00s w
root pts/1 10.224.72.19 Mon15 26:02m 0.01s 0.01s -bash
root pts/2 10.224.72.19 Mon15 12:59 0.17s 0.04s -bash
[root@localhost ~]# pkill -kill -t pts/1
[root@localhost ~]# pkill -kill -t pts/2
[root@localhost ~]# w
17:15:28 up 1 day, 19:24, 1 user, load average: 0.07, 0.08, 0.09
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root pts/0 10.224.70.43 16:52 0.00s 0.04s 0.00s w
删除之后就只剩下一个远程终端登录用户了。。