Skip to content

Instantly share code, notes, and snippets.

@supertylerc
Created October 30, 2014 16:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save supertylerc/ad24b99abc2af5805ef8 to your computer and use it in GitHub Desktop.
Save supertylerc/ad24b99abc2af5805ef8 to your computer and use it in GitHub Desktop.
Log SSH Users Out Via csh
#!/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