Skip to content

Instantly share code, notes, and snippets.

@SrivastavaKshitij
Created April 24, 2017 15:26
Show Gist options
  • Save SrivastavaKshitij/222f0787ba6d9dd638572ecdfd74b395 to your computer and use it in GitHub Desktop.
Save SrivastavaKshitij/222f0787ba6d9dd638572ecdfd74b395 to your computer and use it in GitHub Desktop.
Remote accessing Jupyter Notebook running on a server
This document is about running jupyter notebook on a server and accessing it on a local machine.
On the remote machine, start jupyter notebook
remote_user@remote_host$ ipython notebook --no-browser --port=8889
when the notebook will start, it will generate a token.
On the local machine, start SSH tunnel
local_user@local_host$ ssh -N -L localhost:8888:localhost:8889 remote_user@remote_host
it will ask for token which was generated on the remote machine/
go to the browser on local machine and type localhost:8888
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment