gana2188 / google-cloud-sdk

Automatically exported from code.google.com/p/google-cloud-sdk
0 stars 0 forks source link

gcloud compute ssh does not automatically detect the zone #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
"gcutil ssh" detects the zone, but "gcloud compute ssh" does not.

$ gcloud compute ssh instance-1
ERROR: (gcloud.compute.ssh) could not resolve zone for some resources; try 
specifying --zone

$ gcloud compute ssh 146.148.26.242
ERROR: (gcloud.compute.ssh) could not resolve zone for some resources; try 
specifying --zone

$ gcutil ssh instance-1
INFO: Zone for instance-1 detected as europe-west1-b.

Original issue reported on code.google.com by icol...@gmail.com on 8 May 2014 at 7:46

GoogleCodeExporter commented 9 years ago
Sorry, working-as-intended.

Original comment by jasm...@google.com on 16 May 2014 at 5:00

GoogleCodeExporter commented 9 years ago
Can you provide some feedback about why the zone is required in order to open a 
SSH connection to a server? Since the zone can be inferred from the instance 
name (just as gcutil does), what's the rationale behind the change?

Original comment by icol...@gmail.com on 17 May 2014 at 5:54