SSH Google Cloud Compute Engine Instance via Putty (cont.)

Select and copy public key from puttygen

How to SSH Google compute engine instance via putty

.

This is a follow tutorial on Google compute engine instance.

SSH Google compute engine instance via putty: Requirements

In this follow up tutorial, we will need two open source applications, putty and keygen and a text editor(notepad is ok)

Putty

Putty is SSH, Telnet and Rlogin client. You can download the stable stand alone application here. Putty is about 484kb is size, so download is just a click of a mouse.

Puttygen.

Puttygen is putty SSH key generation utility. Puttygen is about 180kb in size. Download puttygen.

Once you have both application on your desktop or pinned to your taskbar (for easy access).
Locate puttygen.
Open puttygen and click on ‘generate’ to generate private/public key pair. Make random mouse movement over the open space. See screenshot below.

How to ssh google compute engine instance

Generate public key pair

Once the key is generated, save the private key to a location in your system, you can save it on your desktop.
Note: You need to remember the location, we will need this file in other to SSH into Google compute engine instance we created earlier.

If you are prompted to choose: “Yes” or “No” for paraphrase I.e “Save this file without a paraphrase to protect it”. Choose “Yes”.

putty private key paraphrase prompt

putty private key paraphrase prompt

Browse to a location in your system and save the private key. Private key has .ppk extension, while public key is .pem. Ensure that you saved the file with .ppk, see screenshot

generate and save private key

saving private key for putty login

SSH Google compute engine instance via putty: Back to Puttygen

Back to Puttygen, select and copy your public key to notepad (available in windows) or any text editor.

Select and copy public key from puttygen

Select and copy public key from puttygen

Paste on text editor screenshot
ssh google compute engine instance via putty

Edit the public key, change everything after double equal to sign (==) to your name. Please see screenshot.

Edit public key add your username

Editing public key

Note: You will use the username for accessing google compute engine instance via SSH later.

Select and copy the edited public key (containing your name).

Copy the public key back to google compute instance

Copy the public key back to google compute instance

SSH Google compute engine instance via putty will be continued.
Continue on Google compute engine instance and putty SSH.

Share: