Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

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.

share|improve this answer
add comment

All you need is explained here: Reversing an ssh connection

share|improve this answer
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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.