Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Cloud ssh timeout: how to increase session time?

For connection from Linux I use:

gcloud compute --project "xxx" ssh --zone "europe-west-b" "yyy"

After ~10 minutes of innactivity my console freeze or I see error 255.

like image 311
Vitaly Zdanevich Avatar asked May 06 '15 13:05

Vitaly Zdanevich


1 Answers

Google cloud has a session timeout across the board of 10 minutes, so you need to use a keepalive. Try adding the argument --ssh-flag="-ServerAliveInterval=30" - any value less than 600 should do the trick there.

There's a description of the timeout here, and full usage details for gcloud ssh here.

like image 97
IBam Avatar answered Oct 16 '22 19:10

IBam