How to enable OS X screen sharing (VNC) through SSH?

Source: http://technotes.twosmallcoins.com/?p=279 Putty is a good SSH client for Windows. 1) SSH into your remote OS X machine with an administrator’s log in and password. 2) Enable Remote Desktop (a.k.a. Screen Sharing, a.k.a. VNC) with this command: 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 … Read more