Linux強制關掉其他ssh登錄的用戶 首先 用who命令查看登錄的iproot pts/0 162.16.16.155 14:30 0.00s 0.07s 0.05s wroot pts/1 162.16.16.155 14:30 12.00s 0.01s 0.01s -bash 然後who am ...
Linux強制關掉其他ssh登錄的用戶
首先 用who命令查看登錄的ip
root pts/0 162.16.16.155 14:30 0.00s 0.07s 0.05s w
root pts/1 162.16.16.155 14:30 12.00s 0.01s 0.01s -bash
然後who am i 查看自己連接的進程
然後就可以刪除除自己之外的連接了
pkill -kill -t pts/1