Google Cloud Compute Engine Instance and Putty SSH

Compute engine instance and putty SSH contd

This tutorial is a continuation of my old tutorial on Google cloud services, SSH Google compute engine instance via putty

Back to Google Cloud console.

login to Google Cloud console. Select the Google compute engine VM instance.

SSH Google compute engine instance via putty

Select VM-Instance

Scroll down to SSH, below Add metadata. Click on “add SSH key”.

SSH Google compute engine instance via putty

Click to add ssh key

Paste the key (public key) copied from the test editor

Paste your public key

Paste your public key

If you get errors like the one below (see screenshot),

error in the key syntax

error in the key syntax

it could be due to line breaks in the key you pasted. Close in the empty space. Ensure that there is a blank space between the key and your username (in this case, username= demoserver). If the key syntax is correct, the error will disappear. You can add more keys for other users as well, just repeat the previous steps. Once you have succeeded in adding the key, save your changes. (see screenshot below).

same the public key

Save the public key

It is time to enjoy our long hours of reading, fire up putty and let’s have some fun.

Open putty.

Expand SSH (click on + sign).

compute engine instance and putty SSH, putty section

Fire up putty, click on the plus sign

Select “Auth” from the expanded list.

Browse to locate the private key

Browse to locate the private key

Click on browse, locate the private key we saved earlier.

Select the private key from the saved location

Select the private key from the saved location

compute engine instance and putty SSH | Adding session.

Scroll back to session.

Scroll back to sessions

Scroll back to sessions

Follow the steps in the screenshot below.

Save sessions in putty

Save sessions in putty

1. Enter host name /IP: See description /screenshot below.
The host name / IP. This is the same as the Google Compute engine instance external IP address

Server external ip

Server external ip

2.Saved session: Provide any name you like, this will enable us connect back to the server anytime with our saved settings.
3.Save button: Click to save session.
4. Open: Open connection to Google compute engine instance.

Putty establishes connection to Google compute engine instances.
We did not add passphrase to our key so when prompted, Click “YES”.

Passphrase request acceptance

Passphrase request acceptance

Login As: Enter username.

The username used in public key

The username used in public key

Authentication complete.

We made it to shell.

We made it to shell.

Of course, we can start installing other applications and doing cool stuff with your server.

compute engine instance and putty SSH | successful login

Run things on the server

More tutorials coming up see, http://mrparagon.me/category/the-web/cloud/

1 Comment on Google Cloud Compute Engine Instance and Putty SSH

  1. Boii Zena says:

    Thank you for clearing thing up. I’m new to Google cloud, you post helped me, I have been at the glance out for such info.

Leave a Reply

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