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 ?
This will work with a normal installation:
ssh to your remote machine, with X forwarding turned on
Alternatively, set the gconf keys from the command line with gconftool :
You can see the other remote_access keys with this command :
If your server isn't started remotely, start it with
There's more info in this answer.
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
Am assuming then that you have the openssh server installed in the server. So from a client do this:
ssh USER@SERVER. For example:
The user HAS to have ssh permission in the server and must also be available in the server of course.