Stop banging your head on internal services

SSH & Remote Administration

Stop banging your head on internal services

🧩 The Challenge

Ever needed to access a web UI or database listener running only on localhost on some far-off server? You know, that `127.0.0.1:8080` that’s not exposed to the world, but you really need to poke at it from your dev machine. I’ve wasted hours before wishing I could just click a link.

💡 The Fix

Setting up a local SSH tunnel lets you trick your laptop into thinking that remote port is right here. It’s like you’re plugging directly into that distant server’s loopback interface, super handy for debugging those internal services without messing with firewall rules.

ssh -L 8080:localhost:8080 user@prod-app01.yourdomain.com

⚙️ Why It Works

This command tells your local SSH client to listen on port 8080. Any connection to your `localhost:8080` then gets encrypted and sent over the SSH connection to `prod-app01`, which then forwards it to its own `localhost:8080`.

🚀 Pro-Tip: Drop this into your `~/.ssh/config` as a `LocalForward` directive for always-on access.

Linux Tips & Tricks | © ngelinux.com | 11/11/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted