To create an SSH tunnel to a port on a compute node associated with MySQL Cloud Service, you use Secure Shell (SSH) client software that supports tunneling.
Several SSH clients that support tunneling are freely available. The following sections show how to use SSH clients on the Linux and Windows platforms to connect to a compute node using an SSH tunnel.
The Linux platform includes the ssh utility, an SSH client that supports SSH tunneling.
Before you use the ssh utility to create an SSH tunnel, you need the following:
The IP address of the target compute node.
The IP addresses associated with a database deployment on MySQL Cloud Service are listed on the details page associated with the database deployment. For instructions to display this page, see Viewing Detailed Information for a MySQL Server Deployment.
The SSH private key file that pairs with the public key used during the database deployment creation process.
The port number for which you want to create an SSH tunnel.
After the SSH tunnel is created, you can access the port on the target compute node by specifying localhost:
local-port
on your Linux system.
PuTTY is a freely available SSH client program for Windows that supports SSH tunneling.
Before you use the ssh utility to create an SSH tunnel, you need the following:
The IP address of the target compute node.
The IP addresses associated with a database deployment on MySQL Cloud Service are listed on the details page associated with the database deployment. For instructions to display this page, see Viewing Detailed Information for a MySQL Server Deployment.
The SSH private key file that pairs with the public key used during the database deployment creation process.
The port number for which you want to create an SSH tunnel.
After the SSH tunnel is created, you can access the port on the target compute node by specifying localhost:
local-port
on your system, where local-port
is the source port you specfied when creating the tunnel.