Created
October 30, 2014 16:19
-
-
Save supertylerc/ad24b99abc2af5805ef8 to your computer and use it in GitHub Desktop.
Log SSH Users Out Via csh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SSH_USER=$1 | |
kill -9 $(ps aux | egrep [s]shd.*$SSH_USER) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment