Remotely enable VNC on OS 10.5 (Leopard) with SSH
December 2, 2008 9:05 am Mac Tips
I originally found this solution in an Apple forum thread that has an interesting discussion about the subject.
If you find yourself needing to get remote VNC access to your Apple computer running Leopard, you can do it remotely as long as you have an SSH connection to the machine. This is especially helpful because the default configuration for Apple’s remote desktop only allows you to connect from another Mac. You need to set a generic VNC password if you want to connect via a VNC client running in Linux or Windows. Here’s how.
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -activate -access -on -clientopts -setvnclegacy -vnclegacy yes -setvncpw -vncpw [your password] -restart -agent

marc :
Date: April 30, 2009 @ 6:21 pm
works fine for me.
this saves my ass - otherwise i had to drive 80km to our company to reanable screensharing to remotly setup our mac - THANKS for this tip