Task: Create an SSH Tunnel Through a Bridge (Jump) Machine to Access a Remote Database
Task: Create an SSH Tunnel Through a Bridge (Jump) Machine to Access a Remote Database: a task in Terminal-Lego-15k (Harbor dataset). Write a shell script that establishes an SSH tunnel to a remote database server by passing through an intermediate "bridge" (jump/bastion) machine. The script…
The task
Write a shell script that establishes an SSH tunnel to a remote database server by passing through an intermediate "bridge" (jump/bastion) machine. The script should set up local port forwarding so that a local application (e.g., a PHP script) can connect to the remote database as if it were running locally.
Part of PrimeIntellect/Terminal-Lego-15k.