« Moving a window above the top bar in Gnome 3 classic shellXbox 360 Bluetooth Controller on Centos 7 Linux »

Connecting to x11vnc through an ssh tunnel, both ways

11/05/17

  04:23:00 am by wdawe, Categories: General

Enter the following command on your local machine (machine_A):
ssh user@remote_machine -L 5900:localhost:5900 "x11vnc -display :0 -noxdamage"
then run vncviewer and use localhost as the server to connect to and you should see the remote machine's screen.

To do it in the other direction if you use x11vnc to connect outwards.
At a console prompt on the local machine (Machine_A) enter: vncviewer --listen (listens on port 5500 by default)
At a console prompt on the remote machine enter: ssh user@Machine_A -L 5500:localhost:5500 -N
And finally on the remote machine: x11vnc -connect localhost -display :0
and you should see the remote machines screen.

 Permalink

No feedback yet


Form is loading...

Cool web tools, EEPC tips and Linux info. Browse around, I'm sure you will find something to interest you.

Search

  XML Feeds

blog software