Last active
December 14, 2018 14:01
-
-
Save Ic3fr0g/c3ec1a88b02bcbcd1c92e52b14e827b8 to your computer and use it in GitHub Desktop.
Jupyter Notebook port forwarding over remote machines
This file contains hidden or 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
# Port forward and ssh into the remote machine from your local terminal | |
ssh -L 8888:127.0.0.1:8888 user@remote-ip-address | |
# From remote machine | |
jupyter notebook --no-browser --port=8888 | |
# From local machine browser access localhost:8888 | |
# To make sure no other apps are running on that port | |
kill $(lsof -t -i:8888) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment