Connect to Google Compute Engine (GCE) Linux VM Instances Using SSH

Lab Steps

Signing In to Google Cloud Console
Connecting to the Virtual Machine with a Browser-Based SSH Connection
Starting a Google Cloud Shell
Generating SSH Keys for the Virtual Machine
Attaching the Public Key to the VM Instance
Connecting to the VM Instance Using the Custom SSH Key
Validate Connect to Google Compute Engine (GCE) Linux VM Instances Using SSH

Ready for the real environment experience?

DifficultyBeginner
Max Duration45m
Students145
Ratings
5/5

Description

Lab Overview

Google Compute Engine (GCE) is a high-performance and scalable service that allows you to deploy virtual machines in the cloud. No matter how big your project is, Compute Engine automatically scales from one instance to thousands with the help of load-balancers. Compute Engine's VM instances boot quickly, come with persistent disk storage, and deliver consistent performance. Compute Engine also offers you discounts. The more compute resources you use, the more the discount that will be applied to your account billing.

This lab will show you two methods for connecting to Linux VM instances over SSH. The first method uses SSH keys managed by Google and is established completely within your web browser. The second method involves creating a custom SSH key pair (public and private key) and attaching the public key to the VM in the Google Cloud environment.

Learning Objectives

Upon completion of this Lab you will be able to:

  • Connect to Linux VM instances by using a browser-based SSH connection (SSH from the Browser)
  • Generating/uploading a custom SSH key for instances
  • Connect to Linux instances by using custom SSH keys

Intended Audience

This Lab is intended for:

  • Google Cloud Associate Cloud Engineer (ACE) certification candidates
  • Individuals that are new to Google Cloud or Google Compute Engine (GCE) and want to learn more about how to interact with a Linux instance
  • GCP users interested in using self-managed SSH keys

Prerequisites

This Lab has no prerequisites.

Environment before
PREVIEW
Environment after
PREVIEW

About the Author

Stefano studies Computer Science and is passionate about technology. He loves working with Cloud services and learning all the best practices for them. Amazon Web Services is the provider he prefers and Node.js the programming language he always uses to code. When he's not involved in studying or working, Stefano loves riding his motorbike and exploring new places.