First, you download the puTTY application that will create an SSH Tunnel environment for the localhost. Then, it will be used to establish the connection between Google Cloud and the localhost machine.
After installation, open puTTY, generate an SSH key and set it up on Google Cloud console Virtual Machine.
Generate the SSH using the puTTY key generator. Please follow the steps in the same order as described below.
- Enter key comment ,
- Now copy the public key.
- Save the public key in a safe location for future use.
- Save the private key with the public key.
Note: Public key is for server-side service, and private is for the user side. These keys can be used for FileZilla and don’t place on public computers for security reasons.
Save SSH Public key to Google Cloud.
Now open Google Cloud Platform Dashboard and visit the section Compute Engine> Metadata.
Now paste the public key (copied from the puTTY key generator) in the metadata section of Google Cloud.
- Paste the SSH key by adding a blank item.
- Save the settings.
Configure the puTTY application to access PHPMyAdmin localhost
Putty Session Configuration
Now you’ve to configure the puTTY application for the PHPMyAdmin access
Copy the IP address of the Virtual Machine VM.
- Paste the IP address in the saved sessions
- Click on the Save button.
Final settings of session:
- Select the IP Address
- Click on the Save button
- Now click on the load button provided.
- Paste the IP address in Host Name
For your reference, you can check this documentation.