Created
February 6, 2020 12:01
-
-
Save amdavidson/552b04e0ad91eb6bc8b34c497c744bcb to your computer and use it in GitHub Desktop.
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
fix_mosh_server() { | |
local fw='/usr/libexec/ApplicationFirewall/socketfilterfw' | |
local mosh_sym="$(which mosh-server)" | |
local mosh_abs="$(greadlink -f $mosh_sym)" | |
sudo "$fw" --setglobalstate off | |
sudo "$fw" --add "$mosh_sym" | |
sudo "$fw" --unblockapp "$mosh_sym" | |
sudo "$fw" --add "$mosh_abs" | |
sudo "$fw" --unblockapp "$mosh_abs" | |
sudo "$fw" --setglobalstate on | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment