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
반응형
'IT기술 > Linux 계열' 카테고리의 다른 글
[Linux] 리눅스 hostname 변경 (0) | 2022.07.20 |
---|---|
[Linux] 리눅스 핵심 구성요소 & 기본 명령어 (0) | 2022.07.18 |
[Linux] ansible 설치하기 (ansible-2.4.4.0) (0) | 2022.06.27 |
[Linux] 리눅스 분할 압축 풀기 (1) | 2022.06.13 |
[Linux] 리눅스 네트워크 드라이브 설정 (1) | 2022.03.14 |
[Linux] 리눅스 원격 접속 세션 종료 (who kill) (0) | 2022.02.28 |
댓글