ERROR gcloud compute ssh Could not fetch resource The resource projects nadeem-gcp-123456 zones australia-southeast1-b instances myos was not found

+2 votes

Hi Guys,

I am trying to do SSH in my GCP instance, but it is showing the below error.

$ gcloud compute ssh myos
WARNING: The private SSH key file for gcloud does not exist.
WARNING: The public SSH key file for gcloud does not exist.
WARNING: The PuTTY PPK SSH key file for gcloud does not exist.                                                          WARNING: You do not have an SSH key for gcloud.
WARNING: SSH keygen will be executed to generate a key.                                                                 WARNING: Invalid characters in local username [Nadeem Akhter]. 
Using username corresponding to active account: []
ERROR: (gcloud.compute.ssh) Could not fetch resource:
- The resource 'projects/nadeem-gcp-123456/zones/australia-southeast1-b/instances/myos' was not found 
Aug 24, 2020 in GCP by akhtar
• 38,170 points
604 views

1 answer to this question.

0 votes

Hi@akhtar,

You need to select your region properly when you configured your CLI. It is trying to search for your instance in a different region. So you need to use --zone parameter in your command to avoid this error.

answered Aug 24, 2020 by MD
• 95,160 points

Related Questions In GCP

0 votes
1 answer
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,160 points
109 views
+2 votes
1 answer

How to activate GCP Cloud Shell?

Hi@MD, You can follow the below steps to ...READ MORE

answered Aug 22, 2020 in GCP by akhtar
• 38,170 points
152 views
+2 votes
1 answer

How to create a project from GCP Cloud Shell?

Hi@akhtar, GCP shell has a command named gcloud. ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,160 points
181 views
+2 votes
1 answer

How to list down all the projects in GCP Cloud?

Hi@akhtar, GCP Shell has a command named gcloud. ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,160 points
157 views