Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
You need to connect to one of your Compute Engine instances using SSH. You’ve already authenticated gcloud, but you don’t have an SSH key deployed yet. What’s the quickest method to establish an SSH connection?
A
Generate a key using the ssh-keygen command, upload it to the instance, list instances with gcloud compute instances list to find the IP, then connect using the ssh command.
ssh-keygen
gcloud compute instances list
ssh
B
Directly use the gcloud compute ssh command to connect.
gcloud compute ssh
C
First, create a key with ssh-keygen, then use gcloud compute ssh to connect.
D
List instances with gcloud compute instances list to get the IP address, then connect using the ssh command.