Love Core Tunnel. I am trying to setup an ssh tunnel but running into a bit of an issue. In short from command line this is what I am using and this works just fine. Trying to replicate the same in Core Tunnel
ssh -nNT -L 5901:localhost:5901 user@<remote_ip>
This is the GUI representation of what I have done but the VNC client is not able to connect via
After comparing the debug output to the shell I was able to get the connection working. I am attaching a screenshot to help others in case they find themselves in a same situation.
If you want to forward to a port on remote host, usually you use localhost, not the internet domain name. Since your remote host may not allow external internet access on that port, and that is the reason why we use local forwarding – put remote insecure services under the protection of SSH.
Hi,
to avoid this you could simply run vncviewer -via user@tunnel user@<remote_ip>:NN
vncviewer will setup automatically the correct tunnel and port (the latter depends on the display port number NN).
I prefer this alternative because it avoids the additional creation of the tunnel by hand and correctly setting the port.
Best
N