Ubuntu – Set “Remote desktop” host server remotely

configurationremote desktop

When you want to set a server to accept "Remote Desktop" connections, you do:
System \ Preferences \ Remote Desktop

The thing is I just have a ssh connection to the server for now. How do you set it using only the command line ?

Best Answer

Install x11vnc on the remote computer and then punch something like this in on your local computer:

ssh user@host -L 5900:localhost:5900 "x11vnc -display :0 -noxdamage"

Then connect to localhost on your local computer with your VNC client. The local port 5900 will be tunnelled over the SSH connection (which is now running x11vnc).

Simple!

Related Question