I am unable to access Google VM using Terminal on Mac and browser SSH provided by Google.
On Terminal, it gives me error (when i run sudo gcloud compute ssh instance-name): Permission denied (publickey)
When i try browser SSH, it says: Could not connect, retrying..
What i have tried till now:
Removed all SSH keys of the project from the Cloud console.
Removed SSH key from my system.
Used gcloud init
Ran sudo gcloud compute ssh instance-name and it created a new SSH Key and updated the key to the project key
But it is still giving the same errors.
Please help.