colab-ssh icon indicating copy to clipboard operation
colab-ssh copied to clipboard

[Bug]: timeout disconnection few minutes after connecting

Open tgpsantos opened this issue 2 years ago • 2 comments

Jupyter notebook

Google Colab

What happened?

Hi guys,

Every time I connect to Colab using VS Code the machine disconnects everything works great for 5-10 minutes until it disconnects, independently whether I'm running code or not.

I tried running an endless script in the web side to try to prevent it from disconnecting like this

import time
while True:
  print(f"random {random.random()}")
  time.sleep(30)

but got no luck..

Any idea why this happens?

Another question, after setting up the connection to VS Code I'm prompted to install the kernel from their marketplace. Is this an issue?

What did you expect?

I'd expect to be able to use SSH for longer periods of time.

Version

  • [X] latest

Which version (if not the latest)?

No response

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

tgpsantos avatar Jun 03 '22 16:06 tgpsantos

I met the first problem too. Colad always disconnects. Dose Google Colab ban colab_ssh? In README.md, it says: Google Colab | Recently prohibited by Google Colab It may be the reason.

Glimmer0x avatar Jun 12 '22 19:06 Glimmer0x

Google Colab | Recently prohibited by Google Colab

That warning disappears if you integrate Cloudflare.

anu43 avatar Aug 15 '22 07:08 anu43