I'm trying to follow this guide in order to
setup an SSH tunnel for VNC onto an ubuntu desktop from a Windows desktop.
I can connect via SSH but the moment I start the VNC connection to localhost::5902 I immediately get the following message:
"Connection has been gracefully closed".
Any ideas what could be causing this? Is it a bad setting on the Ubuntu computer I'm trying to VNC into? Did I configure PuTTY or TightVNC wrong? Is it because I changed the default SSH port number? Is there something I need to do on my router other than port forward the ssh connection appropriately (which I already did)? Is there an alternate method you would suggest?
Ubuntu 16.04 LTS & Windows 10, both 64 bit.
I suspect as you hint already a port number mismatch somewhere in your setup.