Manage WordPress Files on Google Cloud Platform

April 27, 2017Leron AminComments Open

Are you running a WordPress installation on Google Cloud Platform? If so, it is important that you have a system to remotely manage your WordPress files on Google Cloud.

For those of you who are experienced WordPress users, you’ve probably broken your site before. You’re well aware that a simple plugin malfunction or php code error can lock you out of your WordPress site.

When a plugin or code error breaks your WordPress site, you’ll need to be able to manage WordPress files on Google Cloud using a back-end method.

In this type of situation, when you’re unable to access your WordPress dashboard, don’t lose hope. You can still access your WordPress files remotely using an SFTP client.

In the video above I show you step-by-step how to configure an SFTP client for your WordPress Google Cloud installation.

If you are new to Google Cloud and are unfamiliar with the command-line-interface, check out the Google Cloud FTP tutorial for beginners.

1. Install the Google Cloud SDK

install google cloud SDK to manage wordpress files on google cloud
Download the Google Cloud SDK.

2. Link SDK to your Google Account

login to google cloud SDK in order to grand permissions manage wordpress files on google cloud platform
After installing Google Cloud SDK, the terminal will open, and you will be asked to log in. Type y and press Enter. Your browser will open up your Google accounts page, asking you to grant permissions for the Google Cloud SDK.

3. Configure Compute Engine

Google cloud will ask you if you want to configure compute engine type y for yes manage wordpress files on google cloud
The Google Cloud SDK will now ask if you want to configure Google Compute Engine. Type y and press Enter to continue.
choose your default zone manage wordpress files on google cloud platform
Next you will be prompted to select a zone. Either choose the zone that you selected when setting up your instance, or choose 21 to not set a default zone.

4. Run gcloud Command

After selecting your zone, go back to your Google Cloud Platform instance dashboard, and click the arrow next to the SSH button and select View gcloud command.
select and copy gcloud command manage wordpress files on google cloud
Select and copy your gcloud command.
go back to sdk terminal and paste gcloud command manage wordpress files on google cloud platform
Go back to your SDK terminal and paste the gcloud command.
After putty has been deployed, paste your gcloud command into putty and you will be prompted to configure your SSH keys manage wordpress files on on google cloud
After you paste your gcloud command into the SDK terminal, a PuTTY terminal will launch. Paste you gcloud command into the PuTTY terminal. The PuTTY terminal will generate SSH keys. When asked if you want to enter a passphrase, leave the field empty and press Enter.
your ssh key files will be saved to your computer manage wordpress files on google cloud
Your SSH key files will be saved into your computer files. You can locate your keys at: Windows (C:) > users > yourusername > .ssh.

5. Configure SSH Keys in FileZilla

open filezilla and go to edit then settings manage wordpress files on google cloud
Open FileZilla, and go to Edit > Settings. If you don’t have FileZilla installed, you can download it here.
in the conneciton page under connect, sftp, click the add key file button manage wordpress on google cloud
In the settings page, under Connection > SFTP, click on Add key file… to upload your SSH key file.
choose the middle ssh putty key file manage wordpress files on google cloud
Choose the middle SSH PuTTY key file.

6. Link SSH Key to Google Cloud

Go back to your Google Cloud platform VM instances page, and click on your WordPress instance manage wordpress files on google cloud
Go back to your Google Cloud platform VM instances page, and click on your WordPress instance.
Click on the edit button on the top of the page next to the VM instances header manage wordpress files on google cloud
Click on the EDIT button on the top of the page next to the VM instances header.
scroll down to the middle of the page where it says you have one SSH Key and click on show and edit
Scroll down to the middle of the page where it says You have one SSH key. Click on Show and edit.
Go back to your directory where your SSH keys are saved, and select the bottom SSH key file. Open the file and copy the entire text manage wordpress files on google cloud
Go back to your directory where your SSH keys are saved (Windows (C:) > users > yourusername > .ssh) and select the bottom SSH key file. Open the file, and copy the entire text.
Paste the entire contents of the key file into the SSH text area on your VM instance page select the very last part of the text which identifies your PC and delete it manage wordpress on google cloud platform
Paste the entire contents of the key file into the SSH text area on your VM instance page. Select the very last part of the text (which identifies your PC), and delete it.
replace the deleted text with the name of your wordpress installation, which in my case is bitnami.
Replace the deleted text with the name of your WordPress installation. If you’re using the Bitnami WordPress installation, you will add bitnami at the end of the text.
Copy your external ip address from the middle of the page maange wordpresss files on google cloud
Next, go up towards the middle of the page and copy the external IP address. Then, scroll to the bottom of the page and click the Save button.

7. Connect to FileZilla

go back to filezilla and paste your ip address in the host field preceded with the sftp protocol then enter bitnami in the username field
Go back to FileZilla, and paste the external IP address in the host field. Make sure to put sftp:// before it (see picture). In the username field enter bitnami, and click the Quick Connect button to connect your WordPress instance.
manage wordpress files on google cloud manage wordpress files on google cloud
Success! You are now connected to your WordPress instance and will be able to use the FileZilla SFTP client to easily manage your WordPress files.

Did it work?

If you run into permission errors, click here to fix the problem.

If you are looking for the quick-start version of this tutorial, you can check it out here.

Please leave any questions and comments below!

Up Next…

backup wordpress websites on google cloud
How to Fix FTP Permission Errors on Google Cloud
ftp setup google cloud
Google Cloud FTP Setup with FileZilla (Quick Start)

Leave a Reply

Your email address will not be published. Required fields are marked *

Made with by

© 2021 One Page Zen Systems, LLC  
Legal  |  Privacy Policy  |  Affiliate Disclosure  |  Contact  

Join our Mailing List!

Exclusive early access to the latest tutorials

Monthly update with a list of upcoming tutorials

Special access to members-only events and webinars