• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

cloud shell

GCP CloudShell via Terminal

June 20, 2022

Connect to your CloudShell environment from your terminal.

$ gcloud cloud-shell ssh
Welcome to Cloud Shell! Type "help" to get started.
first.last@cloudshell $
first.last@cloudshell $

$ gcloud cloud-shell ssh Welcome to Cloud Shell! Type "help" to get started. first.last@cloudshell $ first.last@cloudshell $

Once logged in, you can set your project.

first.last@cloudshell $ gcloud config set project $PROJECT_ID

first.last@cloudshell $ gcloud config set project $PROJECT_ID

Filed Under: Cloud Tagged With: cloud shell, connect, gcp, terminal

GCP Display Serial Port in Shell

May 26, 2021

How to display serial port in GCP Cloud Shell.

gcloud compute instances get-serial-port-output instance-name \
--zone=us-central1-a \
--project=your-project-id

gcloud compute instances get-serial-port-output instance-name \ --zone=us-central1-a \ --project=your-project-id

Filed Under: Cloud Tagged With: cloud shell, console, gcp, serial port, terminal

  • Home
  • About
  • Archives

Copyright © 2023