1, w command to view the current user connection status
[root@local ~]# w 10:55:06 up 6 days, 18:00, 2 users, load average: 0.02, 0.04, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 ************* 10:50 3:38 0.22s 0.13s vim server.cnf root pts/1 ************* 10:55 1.00s 0.08s 0.03s w
2, kick out the ssh user
[root@local ~]# pkill -kill -t pts/0