Google Certified Associate Cloud Engineer 2020

Sign Up Free or Log In to participate!

SSH Keys

What happens if you don’t log into your instance until after the temporary private/public keys expire?  Will I not be able to login to the instance?

1 Answers

If you are relying on the regular gcloud compute ssh to access your instance, AFAICT, it always creates a new key for your connection with a default expiration time.

"gcloud compute ssh ensures that the user’s public SSH key is present in the project’s metadata. If the user does not have a public SSH key, one is generated using ssh-keygen(1)" – my understanding here is that every time you gcloud compute ssh in, it’s going to renew an existing key or will create a new one.

Of course, I’m open to more comments.

Bianchi

Splattmstr

that makes sense. Thank you for the input!

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?