1. SSH to your machine.
2. Enable Remote Sharing (VNC) via:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -clientopts -setvnclegacy -vnclegacy yes -clientopts -setvncpw -vncpw mypass -restart -agent -privs -all
3. Login using your VNC client. I used Chicken of the VNC.
4. You can disable Remote Sharing by:
sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -deactivate -configure -access -off