Skip to content

Instantly share code, notes, and snippets.

@Ic3fr0g
Last active December 14, 2018 14:01
Show Gist options
  • Save Ic3fr0g/c3ec1a88b02bcbcd1c92e52b14e827b8 to your computer and use it in GitHub Desktop.
Save Ic3fr0g/c3ec1a88b02bcbcd1c92e52b14e827b8 to your computer and use it in GitHub Desktop.
Jupyter Notebook port forwarding over remote machines
# 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