SSH Local or Remote Forwarding When Both Ends Reach the Service
Goal: Forward traffic to an internal database through an SSH gateway without opening inbound firewall rules. Both the client and the gateway can reach the database directly, so local forwarding and remote forwarding both appear to satisfy the connectivity requirement. Constraint: OpenSSH does not prescribe a default direction when topology permits both. Loca