본문 바로가기
IT기술/Linux 계열

[Linux] 리눅스 네트워크 접속 사용자 종료

by Travelo 2022. 6. 20.
728x90
반응형

 

방법

who 명령어로 네트워크 접속 사용자 확인 후 skill 명령어로 접속 종료

root@ubuntu:~# who
root     tty1         2018-09-04 16:07
root     pts/0       2018-09-13 15:24 (192.168.20.x7)
root     pts/1        2018-09-13 10:26 (192.168.15.x3)
root     pts/3        2018-09-13 10:30 (192.168.15.x3)
root     pts/4        2018-09-13 10:31 (192.168.15.x3)
root     pts/5        2018-09-13 10:48 (192.168.15.x3)
root     pts/6        2018-09-13 14:24 (192.168.15.x9)
root     pts/7        2018-09-13 10:54 (192.168.15.x9)
root     pts/8        2018-09-13 11:03 (192.168.15.x9)
root     pts/9        2018-09-13 15:22 (192.168.15.x9)
root     pts/10       2018-09-13 15:24 (192.168.20.x7)
root@ubuntu:~# skill -KILL -t pts/0
root@ubuntu:~# who
root     tty1         2018-09-04 16:07
root     pts/1        2018-09-13 10:26 (192.168.15.x3)
root     pts/3        2018-09-13 10:30 (192.168.15.x3)
root     pts/4        2018-09-13 10:31 (192.168.15.x3)
root     pts/5        2018-09-13 10:48 (192.168.15.x3)
root     pts/6        2018-09-13 14:24 (192.168.15.x9)
root     pts/7        2018-09-13 10:54 (192.168.15.x9)
root     pts/8        2018-09-13 11:03 (192.168.15.x9)
root     pts/9        2018-09-13 15:22 (192.168.15.x9)
root     pts/10       2018-09-13 15:24 (192.168.20.x7)

 

728x90
반응형

댓글