Is there a way to view (and control) a remote desktop through SSH? I will not have physical access to the remote host machine.
Method 1 :
This can be achieved with vino vnc server & remmina (both come default with ubuntu; if not install it by running
Then from your local computer run:
And then use a VNC client of your choice to connect to
If your computers have funny display settings, you might do better to leave off the
Overview of Solution
Assuming you have already setup an
Next create a Remote Desktop Client profile on your client machine in order to connect to the host machine through an SSH tunnel and ultimately view and control the host machine's desktop through an SSH tunnel.
1a. Locally Enable Remote Control of Host Machine
Do the following on the host machine:
1b. Remotely Enable Remote Control of Host Machine
Do the following on the client machine, replacing
Create Remote Desktop Client profile on your Client Machine
Do the following on the client machine:
Ctrl+N or Connection > New
View and Control Host Machine
On the client machine, when asked for
If successful at this step, you should now be viewing and controlling the host machine's desktop from your client machine through an SSH tunnel.
How to start Vino server remotely without forwarding X (command line-only)
Log on the remote computer as the user who will share their desktop and forward port 5900 to the same port on localhost. With PuTTY, the redirection is set in Connection/SSH/Tunnels. With a command line, use:
Enable desktop sharing (matching the display number on 1st and 2nd lines):
Start a VNC viewer and connect to