I have a RHEL 6 system with TigerVNC installed. It is configured to only allow VNC connections through SSH. Thus, a user can only connect to VNC if they successfully establish an SSH connection to the system.

However, despite the SSH requirement, a user must still run the vncpasswd command and create a VNC password. Isn't this password redundant since an SSH tunnel is required and must already be established?

Thus, my question is: Can you disable the TigerVNC server's requirement for a VNC Password if it will only listen on an SSH tunnel? (Assuming that the password is actually redundant)

Thank You

EDIT: I have a theory. Is the reason why it is not redundant because once you SSH in, you can then VNC into any VNC user's account?

2 Answers 2


It's more that SSH and VNC are separate things, and their password requirements are not related to each other. You're using SSH as the network transport, so you're authenticating on SSH (password or key, it doesn't matter).

Then you're hitting the VNC service, which has its own authentication scheme. VNC doesn't know how you connected to the box, and it doesn't know what user accounts you want to use (I've never used VNC on Linux; I assume it's connecting to the current desktop).

  • This is the correct answer. It looks like it can't be done, as VNC does not have the context as to how a user connected to the system. My apologizes for not marking this sooner.
    – Phanto
    Dec 9, 2012 at 19:20
  • This does not correctly answer the question. It can be done, but you may have to use tightvnc instead to disregard a password.
    – d hee
    Feb 12, 2020 at 1:35

From the TigerVNC manual. man Xvnc

-SecurityTypes sec-types
    Specify  which  security  schemes to use separated by commas.  At present only "None" and "VncAuth" are supported.  The default is "VncAuth" - note that if you want a server which does not require a password, you must set this parameter to "None".

So -SecurityTypes None on the server is the correct answer to your question. I have tested it, and it does work.

Running vncserver -SecurityTypes None will let users connect to the VNC session without a password even if a password is setup.

  • Is this for the server or the VNC client?
    – Phanto
    Jun 30, 2014 at 16:22
  • It is for the server. Jul 29, 2014 at 21:42
  • 4
    This should be marked as correct answer. Running vncserver -SecurityTypes None will let you login to your VNC session without a password even if you have one setup.
    – ruslaniv
    Apr 9, 2016 at 6:36
  • 2
    you might also need TLSNone to be sure, I'm using -SecurityTypes None,TLSNone
    – graywolf
    Nov 25, 2016 at 8:31
  • Per graywolf's comment, I needed to include both None and TLSNone when accessing the vnc server over an ssh tunnel.
    – Rex Linder
    Oct 20, 2023 at 2:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .