I want to remotely start xserver on the remote machine.
If I type "startx" directly on the host machine (i.e. using physical keyboard), the xserver starts as expected. However, when I try to do that over ssh with the same user this does not work.
I get the following server error:
(EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)
sudo startx still works even remotely.
What is preventing xserver to start on remote connections? And how to go around this?