How can I configure VNC server so that it can be accessed only via SSH tunnel?

With the default VNC server setting, there are at least two ways for someone else to login to my computer: by directly logging into my VNC server and my SSH server. Two doors to worry about.

link|improve this question

62% accept rate
feedback

3 Answers

up vote 10 down vote accepted

Bind your VNC server to localhost and do an SSH proxy to your server and tunnel VNC (client) over said proxy.

link|improve this answer
feedback

All you need is explained here: Reversing an ssh connection

link|improve this answer
feedback

If your using CentOs there is a pretty useful guide on here.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.