[Ilugc] Help on Tight VNC, x11vnc

  • From: kapil@xxxxxxxxxxx (Kapil Hari Paranjape)
  • Date: Thu Feb 5 21:26:47 2009

Hello,

On Thu, 05 Feb 2009, Yugendra Venkata Durgamruth Kumar Sala wrote:

I have a Red Hat Enterprise Linux 4 server in my office on LAN. I also have
a Internet Circuit 1Mbps (1:1) connectivity from BSNL on Optical Fibre
Cable. I wish to access the GUI of above mentioned server thru Real VNC
Viewer from home (Windows XP machine)

I have few public IPs available with me. I would request somebody to give me
ideas as how to access this server on LAN using WAN connectivity securely.

There are two aspects to secure remote access using VNC.

1. Creating a secure tunnel to your server machine.

   Normally this is done by giving your server machine a publicly
   accessible WAN address a.b.c.d and starting the ssh daemon on it.
   Then from the client machine you run
     ssh -L NNNN:localhost:MMMM -f -q -N a.b.c.d
   This starts a tunnel which connects from the client machine port
   NNNN to the port MMMM on the server machine.

   You can also use some kind of VPN software (like openvpn) to setup
   such a tunnel but that may be "overkill".

2. Using VNC server and client software.

   You run the VNC server on the server machine by running the
   command
      DISPLAY=:0 x11vnc
   this will give you a port number on stdout which you should use
   as MMMM.

   You will use WinVNC on your windows client machine and connect to
   VNC display :n. According to the value of n use NNNN as 590n.

There are some more recent fancier ways of doing this but this is
probably enough for what you need.

Regards,

Kapil.
--

Other related posts: