SSH X-forwarding doesn't set the DISPLAY variable

I’ve just wasted quite a bit of time debugging a problem and google is less than helpful with the search terms i used. Here’s hoping this will attract it - and at least i’ll be able to find it myself :)

If you try to “ssh -X” and the remote end doesn’t set $DISPLAY, it’s probably because you’re missing xauth on the server.