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 ?
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 ?
Install
x11vnc
on the remote computer and then punch something like this in on your local computer: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!
This will work with a normal installation:
ssh to your remote machine, with X forwarding turned on
Then run
vino-preferences
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.
Am assuming then that you have the openssh server installed in the server. So from a client do this:
ssh USER@SERVER. For example:
ssh [email protected]
This is the simple way of ssh to connect.The user HAS to have ssh permission in the server and must also be available in the server of course.