For Linux PC to Linux PC VNC I only use via SSH console. I was taught how to do this years back by Yaloki and I've been using it since to maintain my mother's PC, where she lives in a different continent from myself.
I mostly go with the default openSUSE configuration.
A simplification as to how I have done this (and more security can be added later) follows. Below when I refer to 'her' it will be my mother's PC in Canada (the PC whose desktop I want to access) where I call her 'mothercpu' and when I refer to 'my' it will be my PC where I am physically sitting here in Europe. Lets assume for this example her routers IP address is 70.71.72.73.
I have enabled the ssh daemon enabled on her PC (in Canada), and I have port 22 open on her PC for the ssh connection. I have her router setup such that any ssh request at port 22 is forwarded to my mother's PC's port#22 on her home LAN. On both our PCs I have the application 'x11vnc' installed and also the application 'tightvnc'. I also have root ssh access disabled on my PC and my mother's PC.
To access her PC I open two konsoles on my PC in Europe. In the first konsole I type:
Code:
ssh -t -L 5900:localhost:5900 mothercpu@70.71.72.73 'x11vnc -localhost -nolookup -nopw -display :0'
I will then get a prompt for a password for user 'mothercpu'. I then enter that password. I can then see in the terminal x11vnc being launched.
and in the second terminal on my PC here in Europe I type:
Code:
vncviewer -encodings "tight copyrect hextile" localhost:0
That then redirects the vnc output from her pc, through an encrypted ssh, back to my PC in Europe.
Once that is functioning, one can then start adding more security (such as changing port #, adding more security to the ssh, etc ... ) and one can map the dynamic IP on her router using a service such as dyndns.
Again, this is Linux PC to Linux PC.
Bookmarks