Enable Remote Desktop Sharing on MAC OSX 10.7 From the CLI
By : Josh -
I recently had an issue with a customer where I needed to enable remote screen sharing (VNC) on a MAC OSX server from an SSH terminal.
Thanks to this post, I was able to get it started up with this command.
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -restart -agent -privs -all
To connect from a MAC client, open Finder, Go, Connect to Server, and type something like the following: