Hi,
My google cloud shell is disabled after I logged-in in another laptop. How can I enable it back?
Hi,
My google cloud shell is disabled after I logged-in in another laptop. How can I enable it back?
Good day and welcome to the community!
You may try to reset the cloud shell by following these steps on how to restore your Cloud Shell home directory to a clean state:
Check for personal files in the home directory and note that the next step deletes these files:
ls -a $HOME
Remove all files from your home directory (note: this will permanently delete all files in your home directory so make sure you have a backup)
sudo rm -rf $HOME
In the Cloud Shell menu, click more_vert More and then click power_settings_new Restart. If prompted, click Restart in the confirmation dialog.
This provisions a new VM and restores the home directory to its default state. Here is the document for this as a reference.[1]
[1] https://cloud.google.com/shell/docs/resetting-cloud-shell#reset
To enable Google Cloud Shell after logging into a new device, you can follow these steps:
Cloud Shell will be enabled and a new session will be created. You can now use Cloud Shell as usual.
If you are still having problems enabling Cloud Shell, you can try the following:
If you are still having problems, you can contact Google Cloud support for assistance.
Here are some additional tips for using Cloud Shell:
gcloud config set compute/region your-region
Replace your-region with the region where your Cloud Shell session is located.