Advertisement
scriptz-team

[SSH] Kick out other SSH users

May 18th, 2013
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. _____ _____ _ _____ _____ _____ _____ _____ _____
  2. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  3. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  4. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  5. |s C R i P T z - T E A M . i N F O|████████████████████████████
  6.  
  7. - iNfO -
  8.  
  9. [SSH] Kick out other SSH users
  10.  
  11. - NOtIcE -
  12.  
  13. LOGiN iNTO YOUR SSH CONSOLE AND TYPE:
  14.  
  15. w
  16.  
  17. then
  18.  
  19. ps faux |grep sshd
  20.  
  21. The output will show which sshd service running for which pts stands:
  22.  
  23. kill -9 SOME_ID from w (pts/0 or pts/1 so SOME_ID is 0 or 1 ...)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement