Created
June 1, 2020 10:44
-
-
Save andersx/13717e1c00589c09d5b4bcb19cfd7ef0 to your computer and use it in GitHub Desktop.
How to run Google Colab on a remote server via SSH forwarding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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