Tuesday, July 28, 2015

Uploading Google App Engine Content with FileZilla

Those who use Google App Engine find it difficult to upload their content using the command line tools.  Therefore, using the graphical FileZilla file transfer application would be most useful.  The setup process looks quite complicated as there are several steps to complete.  However, with careful follow up of following steps would make it possible.

Obtain Prerequisite Information
  • Visit https://console.developers.google.com/project
  • Select your Project Name
  • Select Deployments
  • Select your deployment (Example: google.developer.console.lamp)
  • Note down following
    • Zone: (Example: us-central1-f)
    • Instance name: (Example: lamp-lgzt)
    • External IP: (Example:
    • phpMyAdmin username: (Example: root)

Create Keyfile with Google Cloud SDK Shell (what is in Italics need to replaced by from above information)
  • Open Google Cloud SDK Shell
  • $ gcloud auth login
  • $ gcloud compute ssh lamp-lgzt --zone us-central1-f
    • This tool needs to create the directory [C:\Users\YourName\.ssh]
    • Do you want to continue (Y/n)? Y
    • Enter passphrase (empy for no passphrase): YourPassphrase
    • Enter same passphrase again: YourPassphrase
      • Your private key has been saved in C:\Users\YourName\.ssh\google_compute_engine
      • Your public key has been saved in C:\Users\YourName\.ssh\google_compute_engine.ppk
      • Updated [https://www.googleapis.com/compute/v1/projects/YourProjectId].
      • Passphase for key "YourName@Your-PC": YourPassphrase
  • $ gcloud compute ssh root@lamp-lgzt --zone us-central1-f  (needed to login as root later)

Install and Setup FileZilla File Transfer Application
  • Download and Install FileZilla
  • Run FileZilla
  • Select Edit
  • Select Settings
  • Select Connection-SFTP
  • Select Add keyfile...
  • C:\Users\YourName\.ssh\google_compute_engine
  • Passphrase: YourPassphrase

Create a Connection to Google App Engine Web Directory
  • Run FileZilla
  • Select File
  • Select Site Manager...
  • Select New Site
  • Name of New Site: YourSiteName
  • Host: (above found External IP)
  • Protocol: SFTP - SSH File Transfer Protocol
  • Logon Type: Interactive
  • User: root (to have write permissions for /lamp or /var/www directory)
  • OK/Connect

No comments:

Post a Comment