TigerVNC + SSH without a VNC Password?
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?
Solution 1:
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.