Skip to content

Instantly share code, notes, and snippets.

@andersx
Created June 1, 2020 10:44
Show Gist options
  • Save andersx/13717e1c00589c09d5b4bcb19cfd7ef0 to your computer and use it in GitHub Desktop.
Save andersx/13717e1c00589c09d5b4bcb19cfd7ef0 to your computer and use it in GitHub Desktop.
How to run Google Colab on a remote server via SSH forwarding
# On local machine:
jupyter serverextension enable --py jupyter_http_over_ws
jupyter notebook \
--no-browser \
--port=8765 \
--NotebookApp.allow_origin='https://colab.research.google.com' \
--NotebookApp.port_retries=0
# On remote machine (juicemachine)
jupyter serverextension enable --py jupyter_http_over_ws
ssh -N -f -L 8765:localhost:8765 juicemachine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment