Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to SSH to VM instance on Compute Engine (previously worked fine)

I'm trying to SSH to my VM on Compute Engine, for a specific VM I've used for months. When attempting to connect to the VM from terminal I get a timeout error. When trying to connect via SSH-in-browser I get error code 4003 (Reason: failed to connect to backend).

The SSH-in-browser message further goes to say:

 

Please ensure that:
- your user account has iap.tunnelInstances.accessViaIAP permission
- VM has a firewall rule that allows TCP ingress traffic from the IP range 35.235.240.0/20, port: 22

 

However all this is enabled. Furthermore, I changed nothing in my account or VM settings, and all the sudden it stopped working.

How can I fix this?

1 3 1,150
3 REPLIES 3

Hi @iarbel 

Welcome to Google Cloud Community!

You are currently getting the error due to IAP permission and configuration issues. This could happen due to organizational policy settings that can affect your VMs or there are changes within your VPCs.

You can further check your IAP settings for the VM's network by reviewing this documentation. Also, you can check further VM troubleshooting with regards to SSH via this link.

You may also verify if you have an external Public IP and follow this link on how to connect with your VM

I hope this information is helpful.

If you need further assistance, you can always file a ticket on our support team.

That's not the case. I've reviewed the documentation and all the settings are correct. I don't have a complicated organizational settings as there is a single user for the org (me). Something is off and now I can't access my data. Please advise how this can be fixed.

I'm attaching a screenshot of the SSH-in-browser troubleshoot showing that everything is okay.Screenshot 2023-10-10 at 10.24.59.png

Hi @iarbel

Welcome to Google Cloud Community!

If you're still unable to SSH to your VM, you can also check and find an error that might be helpful for troubleshooting through serial port, you can check troubleshooting via serial console on this link.

If you need further assistance with your data, you can always file a ticket on our support team.