Skip to content

easy ssh tunnel for google colab notebook. thanks for the free GPU google

Notifications You must be signed in to change notification settings

obluff/google-collab-ssh-tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy Google Collab SSH Tunnel

  • Run this script and enjoy a free GPU/High Memory machine courtesy of Google.
  • Adapted from this stackoverflow answer which was adapted from this gist
  • This is useful if:
    • You want a Free GPU
    • You want a more robust dev env than the collab notebooks. (i use this to run juptyer lab instances)
    • You have low memory on your computer so even running Google Collab in browser is slow.

Usage:

  • Create an NGROK account
  • Create file .env file with the following fields and upload it to your collab notebook:
authtoken=NGROK AUTH TOKEN
instancepw=SSH INSTANCE PASSWORD

Launching an Instance

  • Open up a collab notebook and clone this repository
  • To launch an SSH instance
    • run !bash bootup.sh
  • To launch an SSH instance with a bootstrap script.
    • run !bash bootup.sh [PATH TO BOOTSTRAP SCRIPT]
  • Use ssh commands outputted in the collab notebook cell.

TODO:

  • Add support for using google drive file system.
  • Add bootstrap for Spark dev
  • Look into ways to mitigate collab notebook shutdown
  • Add example collab notebook

About

easy ssh tunnel for google colab notebook. thanks for the free GPU google

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages