Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You need to SSH into one of your Compute Engine instances in an unmanaged instances group to run an ad hoc script. You've authenticated with gcloud but haven't deployed an SSH key yet. What's the quickest method to establish an SSH connection?
A
Generate a key using ssh-keygen, upload it to the instance, retrieve the instance's IP with gcloud compute instances list, and then SSH into it.
B
Simply use the gcloud compute ssh command to connect.
C
Retrieve the instance's IP with gcloud compute instances list and SSH into it directly.
D
Generate a key with ssh-keygen and then use the gcloud compute ssh command to connect.