Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
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.

share|improve this answer

All you need is explained here: Reversing an ssh connection

share|improve this answer

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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