Google Cloud Ssh Key Generation

Chrome RDP for GCP is a third-party plugin that connects to the remote desktops of Windows Server instances running on Compute Engine. This plugin is integrated with the Google Cloud Console and once installed, you can connect to any Windows Server instances using the RDP button in the Google Cloud Console.

In this post, I will help you setup FileZilla to manage your files on Google Cloud Compute Engine. You can connect, transfer and edit files on your VM Instance remotely.

Prerequisites

  1. Your Compute Engine Instance running.
  2. For setting up Compute Engine, see the Setting up Compute Engine Instance.
  3. For installing Nginx and PHP, see how to install LEMP in Compute Engine Instance.
  4. Domain name is pointed to your virtual machine.
  5. For setting up Cloud DNS, see the Setting up Google Cloud DNS for your domain.
  6. Google Cloud SQL Setup, see Setup Cloud SQL and connect with Compute Engine.
  7. Setup your website, Setting up your website in Google Cloud Platform.

Choose Best Hosting for your Business

Steps to Connect and Transfer files to Instance

  1. Download PuTTY and FileZilla.
  2. Generate SSH Keys and save them.
  3. Paste your Public Key in Google Cloud Instance.
  4. Setup Public-key Authentication in FileZilla.
  5. Establishing a secure connection to your Instance.
  6. Transfer files to the instance.

Download PuTTY and FileZilla

Click on the links to download PUTTY and FileZilla Client and install them on your computer.

Google Cloud Ssh Key

PUTTY is an SSH key generator to create a public/private key for encrypting the connections between Google Cloud Instance and FileZilla Client.

FileZilla Client is a tool to manage the website files remotely from your desktop.

Download PuTTY and FileZilla

Open the PUTTYgen tool and click the generate button.

Here a progress bar will appear and PuTTYgen will ask you to move the mouse around to generate randomness. So wave the mouse in circles over the blank area in the PuTTYgen window, and the progress bar will gradually fill up as PuTTYgen collects enough randomness.

When the progress bar reaches the end, PuTTYgen will begin creating the key.

When the key generation is complete, a new set of input fields will appear in the window to enter Key Comment.

Now change the Key Comment with your username.

Google Cloud Ssh Key Generation Windows

Copy the generated public key from the top text field which starts with ssh-RSA and ends with your username.

Paste your Public Key in Google Cloud Instance

Go to your Google Cloud account and navigate to Compute Engine >> VM Instances.

Click the Compute Engine Instance you need to access and click edit.

Scroll down to find the SSH section and click show and edit.

Click Add Item.

Now paste the key you copied from PUTTYgen tool in the provided field, once you have pasted the key you can see your username you provided while creating the public key.

Update the instance by clicking the save button.

Go back to the PUTTYgen tool and save the private key safely on your local computer.

Now you can close the PuTTYgen tool.

Setup Public-key Authentication in FileZilla

Google Cloud Ssh Key Generation

Open FileZilla and go to Edit >> Settings.

From the left settings menu navigate to Connections >> FTP >> SFTP.

Click Add key file button and select the private key you just saved using PUTTYgen.

Click Ok.

Establishing a secure connection to your Instance

To connect to your Google Cloud Instance you need the IP Address of your instance and the username you provided to create the public/private key.

In the FileZilla dashboard, in the Host field enter sftp://IPaddress. In the Username field enter your username. Click Quick Connect.

Google Cloud Ssh Key Generation In Git

Get your Professional Google Cloud Architect certificate with this easy to learn course now.

Google Cloud Ssh Key Generation Mac

That’s all now you can connect to your VM instance with FileZilla and manage your files from your desktop.