Logo

dev-resources.site

for different kinds of informations.

Google Cloud Shell: Establishing Secure Connections via SSH

Published at
1/12/2025
Categories
googlecloud
cloud
devops
linux
Author
olymahmud
Categories
4 categories in total
googlecloud
open
cloud
open
devops
open
linux
open
Author
9 person written this
olymahmud
open
Google Cloud Shell: Establishing Secure Connections via SSH

If you are a Software Engineer or a DevOps Engineer, working on a low-config computer, you might face problems while working with resource-intensive tasks such as learning Kubernetes. Here's a solution that can help you.

What is Google Cloud Shell

Google Cloud Shell is a service from Google Cloud Platform (GCP). It offers a remote computer where you can perform the development tasks. It is a free service for Google users.
What it offers:

CPU:

  • Processor: Intel Xeon.
  • Cores: 2 virtual CPUs.
  • Clock Speed: 2.2 GHz.

Memory (RAM): 8 GB

Host: Google Compute Engine virtual machine.

Operating System: Ubuntu Linux LTS

Included Packages:

  • Docker
  • Kubernetes (kind, minikube)
  • Google Cloud CLI
  • Git and GitHub CLI
  • Go Programming Language
  • Java
  • C# and .NET
  • Node.js
  • Python

Let's get started

We can access Cloud Shell via the Google Cloud Website. You don't need a credit card to use Cloud Shell. Go to the Google Cloud Console on https://console.cloud.google.com/.

Image description

Then, activate Cloud Shell. You need to authorize Cloud Shell by clicking the Authorize button.

Image description

You will see an interface like this:

Image description

However, we will use Google Cloud CLI.

Install the Google Cloud CLI

Go to this link https://cloud.google.com/sdk/docs/install to install the tool according to your Operating System.

Verify the installation by running the following command in the terminal:

gcloud version
Enter fullscreen mode Exit fullscreen mode

You will see something like this:

Image description

Sign in to Google Cloud

Log in to Google Cloud by running the following command.

gcloud auth login
Enter fullscreen mode Exit fullscreen mode

A browser window will open. Log in to your Google account. After successful login, you can close the browser window. Now, go back to the terminal again.

Access Cloud Shell via SSH

Run the following command to access your Google Cloud Shell.

gcloud cloud-shell ssh 
Enter fullscreen mode Exit fullscreen mode

This will generate private and public SSH keys and establish an SSH connection to the Cloud Shell.

Now, you can access the dev environment.

If you want to see the equivalent command that is behind the gcloud cloud-shell ssh command, run the following command.

gcloud cloud-shell ssh --dry-run
Enter fullscreen mode Exit fullscreen mode

You will see the equivalent command to access the Cloud Shell without the Google Cloud CLI.

Image description

Conclusion

Google Cloud Shell is a handy, free tool for those who are learning development and DevOps. Especially, can use it to learn and practice Kubernetes.

linux Article's
30 articles in total
Favicon
Easy development environments with Nix and Nix flakes!
Favicon
Setting Up a Simple Two-Node Kubernetes Cluster in No Time
Favicon
Nextcloud on Raspberry Pi - Fedora + Podman Quadlets
Favicon
NVIDIA Drivers with Secure Boot on Ubuntu
Favicon
Как создать свой VPN и получить доступ ко всему?
Favicon
How I used a named pipe to save memory and prevent crashes (in Perl)
Favicon
KDE vs GNOME vs Others: Choosing the Best Linux Desktop Environment in 2025
Favicon
The Linux Foundation Data and AI Fundamentals
Favicon
Kubernetes Security Best Practices
Favicon
A new shell for using modern alternatives to Unix commands
Favicon
Como configurar 2FA em Servidores Linux
Favicon
Configurar servidor de archivos local con Ubuntu y Samba
Favicon
Google Cloud Shell: Establishing Secure Connections via SSH
Favicon
Understanding Linux Shells: Interactive, Non-Interactive, and RC Files
Favicon
[Boost]
Favicon
I am going to learn java in next 8 weeks, please follow me for regular updates
Favicon
Configuring network access with Cisco ASA via minicom utility
Favicon
Fixing Linux Backup Sync Issues for exFAT Compatibility
Favicon
Enhance Your macOS Terminal with Oh My Zsh, Autosuggestions, and Powerlevel10k
Favicon
Turning Markdown into Learning: publishing a challenge on labs.iximiuz.com
Favicon
Fixes for a critical rsync vulnerability (CVE-2024-12084) have been released for Stable/Bookworm, Testing and Unstable....
Favicon
My Zig with Ghostty
Favicon
Understanding Node Problem Detector in Kubernetes: Beyond Default Node Conditions
Favicon
Nginx Simplified: Technical Insights with Real-World Analogies
Favicon
GNOME vs KDE Plasma: Which One Is for You?
Favicon
SSH Keys | Change the label of the public key
Favicon
Debian and KDE 6 - WSL - How to install KDE 6 via Debian - Windows 11 - X410 - Linux - 2024 https://www.youtube.com/watch?v=yrtgmwsptVc
Favicon
Linux/Unix login overview and a bit of clever tricks with "history"
Favicon
🏆 Branching to Level Up in the Cloud! ☁️
Favicon
Mastering Linux File Systems: Everything You Need to Know About Symlinks and Hard Links

Featured ones: