I've tried to follow How to set up remote desktop sharing through SSH? from command line, after connecting via SSH to the server, but vino-preferences seems to work only if I have access to GUI:
> vino-preferences
vino-preferences: command not found
Also, when I try to configure xhost it fails:
> export DISPLAY=:0.0 && xhost +
No protocol specified
xhost: unable to open display ":0.0"
I currently have no way to access the machine directly, only via SSH.
How can I configure vino-server in such circumstances?