- Start your instance from Cgloud console
- (Local terminal) Change to your project
gcloud projects list
gcloud config set project my-project
- Create the ssh blob for easier connection
gcloud compute config-ssh
- Inside
~/ssh/
a newconfig
file should appear with the necessary info to connect. The host name should be enough to connect via SSHssh instance.zone.project
- In VSCode, with the Remote SSH extension, use the same instruction to add the necessary info in order to log into the instance. The passphrase will be asked.
Created
September 7, 2021 18:21
-
-
Save ziritrion/4ad84c6aec2bee0b201db60030f559c5 to your computer and use it in GitHub Desktop.
Gcloud quick reference
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment