l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
November 4: Social gathering
Next Installfest:
TBD
Latest News:
Oct. 24: LUGOD election season has begun!
Page last updated:
2006 Dec 08 13:12

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Tunneling vnc over ssh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Tunneling vnc over ssh



I normally do this to connect to my VNC session from a remote host with
tunneling through ssh:

ssh wotan.hajhouse.org cat .vnc/passwd > .vnc/passwd
ssh -CNf wotan.hajhouse.org -L 5902:wotan.hajhouse.org:5902
xtightvncviewer :2 -passwd .vnc/passwd \
   -encodings 'copyrect tight hextile zlib corre rre raw'

Surely there must be a more automatic way to set up the ssh tunnel and
authenticate to the VNC server. I have looked at gnome-rdp and KDE's
remote-desktop client, but neither has apparently any concept of vnc
tunneled over ssh. In xtightvncviewer there is an option -via that
appears to do what I want (setting up an ssh tunnel automatically), but
my best effort at using it, 

sudo xtightvncviewer wotan.hajhouse.org:2 -via \
hajhouse@wotan.hajhouse.org -passwd .vnc/passwd

did not work (the process hung, no vnc window appeared). The sudo in
the above was necessary to allow xtightvncviewer to bind to a
privileged port, the need for which I fail to grasp.

Has anybody used xtightvncviewer this way sucessfully?

-- 
Henry House
+1 530 753 3361 ext. 13
Please don't send me HTML mail! My mail system frequently rejects it.
The unintelligible text that may follow is a digital signature.
See <http://hajhouse.org/pgp> to find out how to use it.
My OpenPGP key: <http://hajhouse.org/hajhouse.asc>.

Attachment: signature.asc
Description: Digital signature

_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech


LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.