stuck from a couple of days. In ubuntu i'm creating vncserver with command line [tigervnc]
vncserver -localhost yes
to secure connection from only localhost. vnc is successfully created with port - 5901.
Im using putty to establish SSH tunnelling,
SSH tunnel
in realVNC viewer in using
localhost:9091
But it gives error saying connection refused.
What am i doing wrong. Please guide me.
Note : connection works fine if i use vncserver -localhost no
. But for security reasons i dont want this
Did a hell of research, couldn't resolve. StackOverflow is the last hope.
127.0.0.1
You have to create SSH TCP FORWARD to localhost
(or 127.0.0.1
), not 103.16.26.144
There is how I use this on my linux desktop, from a shell terminal.
ssh -fL 9091:localhost:5900 user@103.16.26.144 sleep 2 &&
xvncviewer localhost:9091