WassimBenzarti / colab-ssh

Connect to Google Colab using SSH
https://pypi.org/project/colab-ssh/
MIT License
981 stars 127 forks source link

[Bug]: timeout disconnection few minutes after connecting #121

Open tgpsantos opened 2 years ago

tgpsantos commented 2 years ago

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

Which version (if not the latest)?

No response

Relevant log output

No response

Code of Conduct

Glimmer0x commented 2 years ago

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.

anu43 commented 2 years ago

Google Colab | Recently prohibited by Google Colab

That warning disappears if you integrate Cloudflare.