How do I configure VNC to only accept localhost connections? And not open up ports?
I am new to VNC, and wondering how I go about configuring a VNC server to only allow localhost connections?
The idea is I only want to connect via ssh tunneling. I do not want to inadvertently be opening up ports like 5901 to other machines in the network.
I've tried tightVNC vnc4server, and realvnc, but none of them seem to make the option how to do this clear. I saw one man page somewhere where you could use a -localhost flag, however I'd rather be able to have this permanently in a config file, to reduce the chance of accidentally forgetting that flag one day and inadvertently opening up a port I didn't want to.
PS: Would be nice to save other settings like the "geometry" setting in the config file too if that's possible.
|