VNC with public/private key

  • Now you can use the same tunnel command as before, except that you won't be asked for a password, and the remote machine is more secure.

  • If you are using vncviewer as a user with the same username as the user on the remote machine, you can skip the ssh tunnel and use the command vncviewer localhost -via ip-address-of-remotemachine, and it will automatically set up the ssh tunnel for your.