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

I cannot login to shell with service account

I login gcloud in my local computer and active service account (i have created yet)

But when i run command `gcloud cloud-shell ssh`, it take very long time to response and return error 500 (internal error) without any reason!!!

0 4 268
4 REPLIES 4

 Try something like this: 

gcloud cloud-shell ssh --verbosity=debug

That should give you more information about the error you're experiencing. And maybe you can post it here as a follow-up, so people can help troubleshoot. 

The other option is for you to visit console.cloud.google.com from within your browser, and then click the "open cloud shell" button.  That opens a terminal window, within the browser tab. 

Screenshot 2024-11-19 9.52.36 AM.png

Hi @ngthvan1612,

Welcome to the Google Cloud community!

In addition to @dchiesa1’s suggestion, the error "500 (Internal error)" when using `gcloud cloud-shell ssh` is a generic server-side issue, meaning there’s either a possible issue from the Google Cloud side or the GCloud CLI SDK needs to be updated to the latest version. 

Troubleshooting Steps (based on general Google Cloud best practices):

  1. Check Google Cloud Status: The first thing to do is verify the overall health of Google Cloud Platform services. Go to the Google Cloud Status Dashboard. Look for any reported outages or issues affecting Cloud Shell or Compute Engine (as Cloud Shell runs on Compute Engine). Per checking, there seems to be no ongoing issue for Compute Engine though.  
  2. Try Again Later: Sometimes, temporary glitches occur. Wait for a while (e.g., 30 minutes to an hour) and try the `gcloud cloud-shell ssh` command again.
  3. Check Your Network Connection: A poor internet connection can interfere with the SSH connection. Ensure you have a stable and reliable internet connection. Try pinging google.com to test your basic connectivity.
  4. Check gcloud Installation and Authentication: Even though you've logged in, ensure your gcloud installation is up-to-date: gcloud components update. Then, verify your authentication: gcloud auth list
  5. Google Cloud Support: If none of the above steps work, the problem is likely a persistent Google Cloud Platform infrastructure issue. Contact Google Cloud Support. They have access to more detailed logs and can diagnose the root cause of the 500 error. 

I hope the above information is helpful.

ngthvan1612_0-1732730891456.png

Here `gcloud cloud-shell ssh --verbosity=debug`

ngthvan1612_1-1732730913916.png

 

 i have same issue for my website

Top Solution Authors