How can we stop keyboard interrupt in colab from breaking SSH?
See original GitHub issueIs your feature request related to a problem? Please describe.
First off, thank you so much for the fix to the recent changes that broke ngrok. You made it very easy to get it working again with cloudflared.
When I interrupt a cell in colab it also interrupts the SSH connection and causes VSCode Remote to disconnect from Colab. This then means I have to go run launch_ssh_cloudflared(password)
again, wait for it to load, copy the new cloudflared url and reconnect to colab again, then navigate back to my working folder, entering the password twice.
Describe the solution you’d like
The ability to interrupt cells in colab without breaking the SSH connection.
Describe alternatives you’ve considered -Trying to get ngrok working again so I could use a static TCP address that makes reconnecting faster
- Running the process in the background by putting the cloudflared command in a script called ssh.py and running
!nohup python3 start_ssh.py &
, then reading the cloudflared URL out of ssh_details via regex from nohup.out.
Additional context I’m happy to help with this or PR myself if I get a solution, I’m just not sure where to go from here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:10 (10 by maintainers)
Awesome, thanks again for your guidance and this awesome library. It has enabled me to do stuff in Colab I never thought would be possible.
Okay, so oddly this is an known feature request on Github. I tried to make my own fork and tested all the different ways to do it.
I believe there are two ways to do this:
1. Forked repository verification
2. Staging branch
colab-ssh
original repositoryTo speed up the process, I will be using the second method and merge your changes directly to the staging branch.
Congratulation, you are one of the few colab-ssh contributors 🎆 🥳