Created
September 7, 2017 03:25
-
-
Save alloydwhitlock/1e4779b7966d252573e1e2b95fe62ef9 to your computer and use it in GitHub Desktop.
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/bash | |
# | |
# Clear SSH control master sockets if using Cisco AnyConnect on Mac OS X | |
$(command -v ifconfig) | $(command -v grep) 'tun3' > /dev/null 2>&1 | |
[[ $? -eq 0 ]] && rm -f ~/.ssh/master-alloydwhitlock@* && echo "Cleared SSH control masters from prior connections..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment