SSH Tricks
From SASDocs
Firewall
sudo defaults write /Library/Prefrences/com.apple.alf globalstate -int [n]
0 to turn off the firewall
1 to turn on the firewall
2 to turn on essential services
Enable VNC
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users admin -privs -all -restart -agent -menu
Disable VNC
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -stop
