Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

ssh tunnel -localhost vnc

Post Reply
stan7301
Posts: 1
Joined: 2019-12-21 19:42

ssh tunnel -localhost vnc

Post by stan7301 »

Attempting UltraVNC localhost over ssh tunnel. This is Win 10 Pro on laptop to Win 10 Pro on my main computer. Tearing my hair out; can't make it work. Using the "built in" OpenSSH on both machines for the ssh tunnel, but have also tried Putty with the very same results. I successfully create an ssh tunnel with this command (as administrater): ssh -L 5900:localhost:5900 username@myIPaddress -p [non standard port]. The tunnel establishes perfectly. I then attempt to use UltraVNC server on remote computer and UltraVNC Viewer on local computer. Both computers are at my home and behind my router, both on the 10.0.0..... network. Both computers have the latest version of UltraVNC installed (1.2.2.4). VNC will not connect.... never even get prompted for password of VNC server (which I did set up). To troubleshoot, I shut down the ssh tunnel, and attempt localhost connection inside either computer. That is, using vnc viewer to connect to the vnc server inside the laptop, and doing the same thing on the main computer. That connects just fine. With tunnel active, I temporarily disable the firewall on both computers to no avail. Experimented with a few settings one at a time in sshd_config to no avail. Have chased Google searches til I'm blue in the face. Appears that I am doing everything right, according to all searches, but VNC will not connect to localhost over ssh tunnel. I did stop the uvnc service on the laptop while attempting localhost connection over tunnel to remote computer. Don't know where else to look for an answer. By the way.... the remote computer is dual boot: Kubuntu 18.04 and Win 10 Pro. The very same effort of UltraVNC localhost over ssh tunnel works perfectly when the remote computer is booted into linux. Win 10 Pro and linux OS's are both set up in sshd_config to accep the non-standard ssh port, and the tunnel on both gets established successfully.... To state maybe more clearly: The laptop is Win 10 Pro only... not dual boot on it. When my main computer is booted into Kubuntu, I can successfully establish the ssh tunnel from the laptop, and then successfully establish a vnc connection and see the main computer's desktop on the laptop over that vnc connection. However, when I reboot the main computer into Windows 10 Pro, I can also successfully establish the ssh tunnel from the laptop to the main computer. I then shut down the firewall on both computers to ensure that is not the problem. But when I attempt to connect from the vnc viewer on the laptop to the vnc server on the main computer using localhost over the ssh tunnel, the connection fails, not even ever prompting me for the vnc server's password. When the connection is attempted, about 2-3 seconds passes, and the viewer reports back that
"Connection failed - End of Stream"
"Possible Causes:"
-Another user is already listening on this ID
-Bad connection

Neither of those are the case.

I suspect it is something in Windows 10 blocking this connection, but I do not know where to look.

I am using Norton Antivirus and Firewall, and it is kept up to date regularly.

I can't think of any other info to provide, but I'm stumped, and sure would appreciate suggestions. Thanks, Stan
Post Reply