Q: 1
You have a number of compute instances belonging to an unmanaged instances group. You need to
SSH to one of the Compute Engine instances to run an ad hoc script. You’ve already authenticated
gcloud, however, you don’t have an SSH key deployed yet. In the fewest steps possible, what’s the
easiest way to SSH to the instance?
Options
Discussion
Nah, I don’t think it’s A. B does the key setup too, so fewer steps.
Probably B. The
gcloud compute ssh command will handle key generation and upload for you if needed, so it saves a step. A would work only if your key's already set up, which isn't the case here.Its A. I usually just get the IP from gcloud compute instances list and then run ssh, shouldn’t that work? Not sure if I need a key set up already but I thought that's the normal way. Correct me if I'm missing something here.
Be respectful. No spam.