You can use these instructions to establish an SSH tunnel connection to a VMware SQL with MySQL for Tanzu Application Service service instance from outside a deployment.
In general, the preferred method to connect to a service instance from outside your deployment is through service-gateway access. For information, see Creating a service instance with Service-Gateway access.
You might want to use an SSH tunnel in the following cases:
Any app deployed within your deployment can resolve BOSH DNS hostnames and forward traffic to MySQL service instances using an SSH tunnel.
To connect using an SSH tunnel, you must have SSH access to app containers. For more information, see Configuring SSH access for TAS for VMs.
To connect to a MySQL instance using an SSH tunnel, follow the procedures in Accessing Services with SSH.