Google Cloud Shell Keep Disconnecting

1.6k views Asked by At

looking for solution to prevent google cloud shell disconnecting when it found you idle, even it also disconnect when you run some processing and leave system idle.

message shown Connection to Cloud Shell has been lost. Any additional changes will not be saved.

2

There are 2 answers

0
Asher Manangan On

One way to fix it is running a ping command within a TMUX Terminal.

apt install tmux
apt update
tmux
ping google.com
Ctrl+b "

The downside of this is you'll be working halfscreen.

2
MaratB On

This behavior is by design, as Cloud Shell is intended for interactive use only.