Christopher Jackson's

hacks, thoughts, and utter ramblings.

OSX Screen Sharing via Command Line

To turn on screen sharing via command line issue the following command.
1
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypasswd -restart -agent -privs -all

To turn off screen sharing via command line issue the following command.
1
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off