I would like to start an SSH tunnel and then run vncviewer to connect the port. But as we all know, vncviewer pretty much sends everything in clear over the network, we have to introduce some 'security' to it. One common way is using SSH. In linux, its as simple as just two lines:
ssh -l
vncviewer localhost:10000
*in order for this work, you need to have vncserver already setup and serving on port 5901.
That's it! What it is tryinng to do is. Listen locally on port 10000 and forward any incoming connection to port 5901 of the remotehost. Localhost here pretty much refers to the remote host. It does not make any difference if you were to run the command as, it should still work:
ssh -l
Done. I will be posting shortly on how I did this in perl.
No comments:
Post a Comment