Created
August 23, 2023 04:20
-
-
Save thepeopleseason/8ecc7a2a2bd5300a1c0c3450d06bec08 to your computer and use it in GitHub Desktop.
Hammerspoon: Ensure remote login is on.
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
if not os.execute("netstat -anl|grep '*.22'") then | |
hs.osascript.applescript([[do shell script "launchctl load -w /System/Library/LaunchDaemons/ssh.plist" with administrator privileges]]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment