Created
January 3, 2011 23:56
-
-
Save wtnabe/764202 to your computer and use it in GitHub Desktop.
clean up your uncontrollable ssh sessions ( also live sessions X-)
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 | |
# | |
# clean up your uncontrollable ssh sessions | |
# | |
ps a | awk '$5 ~ /^ssh/ {print $1}' | xargs kill -KILL | |
find ~/.ssh/ -name 'master-*' | xargs rm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment