Created
July 15, 2016 17:55
-
-
Save patrickhulce/37c8058ebb276cc66cc20387eb2e79cb to your computer and use it in GitHub Desktop.
Kill all open SSH mux sessions
This file contains 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 | |
ps aux | grep ssh[:] | awk {'print $2'} | xargs kill -9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for absolute simplicity, configure your alias with
pgrep -f ssh | xargs kill