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
Comments
9 responses to “How-To: Use SSH Tunnels to forward local ports to a remote machine”
Excellent blog here! Also your website loads up very fast! What web host are you using? Can I get your affiliate link to your host? I wish my website loaded up as quickly as yours lol
Thanks! I am using this host: ZoomCloud.net.
Hello There. I found your blog using msn. This is a very well written article. I will make sure to bookmark it and return to read more of your useful information. Thanks for the post. I will definitely return.
Thanks for the kind words Amedar. I hope you find our site useful. Please stop by anytime.
Hiya! I simply want to give an enormous thumbs up for the nice information you’ve right here on this post. I will be coming again to your weblog for extra soon.
Wow, marvelous blog layout! How long have you ever been running a blog for? you make running a blog look easy. The whole look of your website is great, well the content material!
Thanks Brittany. I a have only been blogging a short while. I have been in the IT industry for almost 2 decades. The look of the blog is a template by cyberchimps. They do good work. If you like this template I suggest you stop by their site at http://cyberchimps.com/
Great post. I used to be checking continuously this weblog and
I’m inspired! Very useful information specifically the ultimate phase 🙂 I take care
of such info much. I was looking for this particular info
for a very lengthy time. Thank you and best of luck.