Keypair-based VNC authentication

7,135

Solution 1

One simple method that I regularly use when access a Linux VNC server is to just setup VNC to not require a password at all. But I also set it to only listen for connections on the loopback interface (127.0.0.1).

Then I simply create an SSH tunnel to my box and use the SSH port forwarding for the authentication and remote access.

Solution 2

If you pay for the Enterprise edition, presuming all your machines are in a domain, you can have RealVNC use your current login credentials instead of a separate user name and password using the single sign-on option.

From the docs:

Single sign on

The Single sign-on authentication mechanism extends system authentication to automatically authenticate a connecting user to any instance of VNC Server on any host computer using the credentials initially supplied to log on to the client computer. For this to work, all host computers must be on a domain, and all instances of VNC Server must have Single sign-on specified. Note this feature is not available for VNC Viewer for Java; web browser users must always supply a user name and password in order to connect.

Share:
7,135

Related videos on Youtube

Ram Rachum
Author by

Ram Rachum

Israeli Python developer.

Updated on September 18, 2022

Comments

  • Ram Rachum
    Ram Rachum over 1 year

    I use RealVNC to remote-control my computer while on the go. But it annoys me that I have to type the access password each time. Is it possible to make RealVNC (Or any other VNC implementation) work with my keypair instead of a password?

  • Zoredache
    Zoredache over 12 years
    What OS are you using on the client and server?
  • Ram Rachum
    Ram Rachum over 12 years
    Windows XP on both.