0

I have a remote computer that I would like to VNC to. This computer can only be accessed through a tunnel. For security reasons, I would like to setup the VNC as a localhost.

On my client PC I run windows. I set up the tunnel with plink.exe. I can connect when setting the VNC without a localhost, using:

plink -L localhost:5901:vnc_host:5901 username@tunnel_machine

But it fails when starting the VNC to listen on localhost

For clarification, the following won't work, because I don't have a direct access to the vnc_host.

plink -L localhost:5901:localhost:5901 username@vnc_host

Any idea how to do that?

0

Found a solution using:

plink -t -L localhost:5901:localhost:5901 username@tunnel_machine ssh -L 5901:localhost:5901 vnc_host
| improve this answer | |
  • Thanks for closing the loop on your question. It would be helpful to others with a similar problem if you could add a few sentences to explain what this does. – fixer1234 May 7 '17 at 8:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.