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,240 points
2,135 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,340 points

Related Questions In GCP

0 votes
1 answer

GCP pricing API does not have data for compute instances like N2, M2, C1

You can check the list of available ...READ MORE

answered Apr 6 in GCP by Korak
• 4,460 points
42 views
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 23, 2020 in GCP by MD
• 95,340 points
220 views
+2 votes
1 answer

How to activate GCP Cloud Shell?

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

answered Aug 23, 2020 in GCP by akhtar
• 38,240 points
363 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 23, 2020 in GCP by MD
• 95,340 points
556 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 23, 2020 in GCP by MD
• 95,340 points
937 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP