Tanzu for MySQL on Cloud Foundry 3.3

Using SSH to connect from outside a deployment

Last Updated February 24, 2025

You can use these instructions to establish an SSH tunnel connection to a VMware Tanzu for MySQL on Cloud Foundry service instance from outside a deployment.

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:

  • Connecting from a local workstation. For more information, see Tanzu for MySQL Tools.
  • Connecting from outside the location of your Tanzu for MySQL service instance
  • Connecting from a legacy app that is not in your Tanzu Platform for CF deployment
  • Taking a manual backup to be stored locally. For more information, see Backing up and Restoring with mysqldump.

Any app deployed in your deployment can resolve BOSH DNS hostnames and forward traffic to MySQL service instances using an SSH tunnel.

Prerequisite

To connect using an SSH tunnel, you must have SSH access to app containers. For more information, see Configuring SSH access for Tanzu Platform for Cloud Foundry.

Procedure

To connect to a MySQL instance using an SSH tunnel, follow the procedures in Accessing Services with SSH.