Kan det funka med att använda pmset för att stänga av screen sleep (via ssh) och sedan köra remote desktop?
pmset displaysleep 0
eller något sådant här kanske:
The following command will assign slightly different power management settings for circumstances where the machine is powered by the charger. Here, the machine is set to sleep after 30 minutes and the display is set to never sleep, but only when set by the charger. Issuing both commands will not interfere with each other.
pmset -c sleep 30 displaysleep 0