I am using the TightVNC Java Viewer downloaded from here: https://www.tightvnc.com/release-jviewer-2.6.php which has built-in SSH support. Using this, I would like to connect to my Google Compute Engine instance which runs Ubuntu 16.04.
I have performed the following steps so far by referring to various online documentation:
Installed TightVNC Server on the Ubuntu instance.
Started the VNC Server using
vncserver -localhost :1
OpenSSH server is already installed on the instance.
Assigned a static External IP address to the instance
Tried to access the VNC Server using the TightVNC Java Viewer by specifying the SSH Host as the External IP address of the instance, SSH Port as the default
22
, SSH User as the instance owner, Remote Host as localhost and the Port as the VNC port5901
.
But the connection failed with the error: Cannot establish SSH connection: No supported authentication methods available.
Note: I have tested that the VNC connection works without using SSH when I directly open the port 5901
in the Compute Engine firewall settings and run vncserver :1
. This way, using the TightVNC Java Viewer itself, I can access the Mate desktop that I have installed on Ubuntu. But I would like to use a secure connection through SSH instead. So what else do I need to do to enable this?