[KLUG Members] vnc over internet recommendations

Jason Edward Durrett jed at shackman.com
Fri Jun 3 16:14:09 EDT 2005


> Hey, pretend I'm an idiot, because I am.  I want to set up an ssh
> tunnel for VNC on both my server and my client.  What's the
> command to do that?

This can be done with ssh -L :

ssh -L localport:host:remoteport  user at host

and then connect vnc (or whatever) to your local port -

localhost:localport

 From the ssh man page:

      -L port:host:hostport
              Specifies that the given port on the local (client) host 
is to be
              forwarded to the given host and port on the remote side.  
This
              works by allocating a socket to listen to port on the 
local side,
              and whenever a connection is made to this port, the 
connection is
              forwarded over the secure channel, and a connection is 
made to
              host port hostport from the remote machine.  Port 
forwardings can
              also be specified in the configuration file.  Only root 
can for-
              ward privileged ports.  IPv6 addresses can be specified 
with an
              alternative syntax: port/host/hostport.

You can do some really cool things with this - as well as the -D and -R 
options.



More information about the Members mailing list