default ssh is not working from GCP Console and browser crashes or hang

12,907

I just experienced the same problem and was able to fix it.

This is going to sound stupid, 
but it stop the instance and start it again 
on the instance page.

and the google cloud ssh window works again.'

No access from console SSH, it's completely google managed and they should have the free answer as it's a problem on their side instead of dumping to offsite Q&A as a policy.

I did have also have an error 13 for a while, simply trying to open the window again and again. If it wasn't that they hosted dot.llc and AWS wasn't, I'd be on the less user-friendly but more stable AWS.

IF this doesn't work I think the solution is to attach the volume to another instance, basically redoing all the network, IP, DNS, etc. either that or reload all the YUM instances and pull from a back-up. This is a severe approach though, have some instances backed up, I hope I never need to use them. Looks confusing.

Simply intolerable, where I come from it's firing someone if a production server is down and the answer is "We'll get back to you in 24-hours." or the hundred bucks.

But the turn it off and on again works on the cloud (shudders)

That it'd go down in the first place is bad. I've never ever had to turn off a linux server and back on again to fix something before.

Share:
12,907

Related videos on Youtube

Gineesh
Author by

Gineesh

Gineesh has worked as a Systems Engineer, Automation Specialist, and content author. His primary focus is on Ansible Automation, Containerization (OpenShift and Kubernetes), and Infrastructure as Code (Terraform). LinkedIn | iamgini.com | techbeatly.com | rovervibes.com

Updated on September 18, 2022

Comments

  • Gineesh
    Gineesh almost 2 years

    After creating an instance in Google Cloud Platform(GCP), I was able to click on SSH and open the browser based SSH console to access the instance. (Auto key copying and connect from console itself without a local ssh client) But I noticed this is not working since a few days and browser hangs (tried on Firefox, Chrome etc).

    Has anyone experienced similar issue before?

    note : connection is okay with putty/local client as well as from Cloud Shell console (gcloud compute --project "blackforest" ssh --zone "us-east1-b" "test-instance")

  • Gineesh
    Gineesh about 6 years
    Thanks @Django, Yes, nothing changed in VPC or subnet level. As mentioned above connection working via putty (local pc console) or from google cloud shell. Seems something related to web ssh method. Need to check on some more PC's :)
  • Django
    Django about 6 years
    SSH connectivity from the browser SSH button is initiated by a IP address in Google network completely different than your IP address or local network. That's why you should make sure that the firewall allows 0.0.0.0/0 as source range for SSH access.
  • Gineesh
    Gineesh about 6 years
    Thanks @Ahmed, But I have tried same from different accounts and different projects (even from different workstations/browsers). not sure what is the exact issue.
  • Gineesh
    Gineesh about 6 years
    Thank, mm, not sure on that. Thanks @Ahmed, But I have tried same from different accounts and different projects (even from different workstations/browsers). not sure what is the exact issue.
  • Gineesh
    Gineesh over 4 years
    he he.. understood