This is a real problem with very little documentation to deal with this.
Some time after creating the instance using the gshoud sdk ssh fragment provided through the GCP console, it stopped working and an error constantly occurred when 255 made the connection to ssh in the instance accessible only through the browser through the GCP console for the computation instance in question. Not to mention that this happened to me in many different cases, some of which did not affect the default permissions of the account after the initial setup and deployment, which is too frustrating. Because for no reason it just stops working ... it works, and then it doesn't ...
The only thing that worked for me was creating a new user to communicate through gcloud sdk! Whether it is Windows / PowerShell or Linux locally, using the following snippet:
gcloud compute ssh newuser-name @ instance-name
This is all according to the GCP documentation here: https://cloud.google.com/compute/docs/trouification / troublesho-ssh
Everything else is missing according to the suggestions in the documentation - port 22 is open with access, which means that this should be a problem for users by default authorization_keys, which they provide absolutely no documentation on how to fix it - at least nothing. what I could find upon correction (without creating or deleting)
I tried updating the account, tried to remove the user and credentials from the instance, nothing seems to work. via:
gcloud compute --project "project name" ssh --zone "us-east4-a" "instance name"
It just doesn't work ... - I even tried 'gcloud compute config-ssh --force-key-file-overwrite' DOES NOT WORK ANYTHING ...
But creating a new user works every time, and once the user is created, you can continue to use this user through gcloud sdk
This is a workaround, and I hate circumventing things like this, but for my common sense, it works at least until I can figure out how to reset the default permissions of the account, so if anyone has any ideas or they can show me the direction for which I more than appreciate it!