Skip to content

Instantly share code, notes, and snippets.

@ericfourrier
Created May 31, 2016 10:24
Show Gist options
  • Save ericfourrier/41398f1e271d0abdc9f3bc47addefe7e to your computer and use it in GitHub Desktop.
Save ericfourrier/41398f1e271d0abdc9f3bc47addefe7e to your computer and use it in GitHub Desktop.
# On the remote
jupyter notebook --no-browser --port=8889
# On the client
ssh -N -f -L localhost:8888:localhost:8889 remote_user@remote_host
# The first option -N tells SSH that no remote commands will be executed and is useful for port forwarding.
# The second option -f has the effect that SSH will go to background,
# The last option -L lists the port forwarding configuration (remote port 8889 to local port 8888).
# You can now open your notebook on the local machine at localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment