The Secret Tunnel: Accessing Production DBs Without Exposing Ports
· 3 min read
You're debugging a critical bug in the Example App. You need to see the raw data in the sale table to understand why the totals aren't adding up.
You fire up TablePlus or DBeaver, but you hit a wall. The database is (rightfully) in a private network.
How do you get in?
Do you temporarily open port 3306 to the world? Dangerous. Do you deploy a VPN server just for this? Expensive.
The answer is an SSH Tunnel.
