For many application on Google Cloud, phpMyAdmin is only accessible via your local machine using an SSH tunnel. This is done as a security precaution, which you will find configured in the WordPress Bitnami stack on Google Cloud Platform.
In this tutorial you will learn how to use puTTY as an SSH client in order to establish a secure shell (SSH) connection between your server and your local machine. This secure connection will allow you to connect to your server’s phpMyAdmin page in order to safely make changes to your website’s database.
Before getting started with this tutorial, you should have already installed puTTY, which is the SSH client that you will be using in this tutorial. Also, you should have already launched an application on Google Cloud Platform, such as WordPress Bitnami, which will be used as the example in this tutorial.
There are 5 steps in this tutorial:
1. Download puTTY
2. Generate SSH Keys
3. Configure Public Key
4. Configure puTTY Settings
4.1 Session settings
4.2 Auth settings
4.3 Tunnels settings
NOTE: If your domain is configured with SSL, then enter
localhost:443 as the Destination
4.4 Data settings
4.5 Session settings
5. Connect to phpMyAdmin
NOTE: If your domain is configured with SSL, then enter https://127.0.0.1:8888/phpmyadmin/ into the URL bar.
Did it work?
Now that you’ve configured the settings for both the puTTY Client and your Google Cloud VM instance, you can open the SSH tunnel at any time by clicking on the Open button on the Session page.
If you have any questions or comments, please post them below!