Today’s How-to is about SSH tunneling.
Tunneling is very helpful when you need to access a service securely over SSH, such as webmin or VNC. For this example I will show you how to tunnel VNC over SSH. Just change the port number for another service if that is what you need.
Here is what we have:
1 – A server running SSH, IPtables and VNC. For this example we will call this system 192.168.2.42
2 – a Client with openSSH. This system will be 192.168.2.43.
From the client machine open a terminal window and type the following:
ssh -f [email protected] -L 5900:192.168.2.42:5900 -N
vncviewer 127.0.0.1:5900
And there you should now have your VNC session to the server over a secure SSH tunnel.
I hope this helps you in your technical endeavors!
-Joe
Leave a Reply