Using SSH to Connect from Outside a Deployment

Page last updated:

This topic provides instructions for developers for establishing an SSH tunnel connection to a VMware Tanzu SQL with MySQL for VMs service instance from outside your deployment.

Note: In general, the preferred way you 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.

Overview

You may want to use an SSH tunnel in the following cases:

  • Connecting from a local workstation. For more information, see Tanzu SQL for VMs Tools.
  • Connecting from outside where your Tanzu SQL for VMs service instance is located.
  • Connecting from a legacy app that is not in your TAS for VMs deployment.
  • Taking a manual backup to be stored locally. For more information, see Backing Up and Restoring with mysqldump.

Any app deployed within 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 TAS for VMs.

Procedure

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