kick ssh client connection

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

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326827606&siteId=291194637