restartdisconnectgoogle-cloud-shell

Why google cloud shell auto disconnect after 1 hours


I use Google Cloud Shell to run Jupyter Notebook on instance , but after 1 hours,the connection is disconnect.

And I reconnect to instance, there is nothing, is same as reset instance.

So, please tell me how to set up ,make the connection of cloud shell keep connect.

Thanks!


Solution

  • The virtual machine instance that backs your Cloud Shell session is not permanently allocated to a Cloud Shell session and terminates if the session is inactive for an hour.

    https://cloud.google.com/shell/docs/limitations