Waking display from terminal, general waking
The easiest way to do this over SSH is to use caffeinate  -u (available since OS X 10.9 I think) to simulate user activity. 

Add the flag -t 5 to specify a timeout of 5 seconds (else you'd have to ctrl+c out of caffeinate, it seems).