⛏️ SSH quick tip
A quick tip for using SSH to tunnel into your local network for easily binding remote ports on your local computer.
Here’s a simple trick for SSH tunneling, so that you can bind a local port to one on a server that you have SSH access.
“What for?” you ask? Let’s say your at work and you need to add port-forwarding to your home. In this case you need to remotely access
192.168.0.1 on your LAN network at home. To make your LAN network available at at your work network, simply make a SSH tunnel to capture port
80 and show it on your current machine at any port you want (we’ll take
$ ssh -L 9000:localhost:80 user@yourhomeaddress
You can also use
ssh to tunnel into sites that are blocked. Let say you are at work and
imgur.com is being blocked. To get around this we can create a tunnel through a server which
isn’t in our network and thus can access Imgur.
$ ssh -L 9000:imgur.com:80 user@yourhomeaddress