Access IPython Notebook running on Remote Server

If you ever need to access IPython Notebook running on remote server via local browser.

On the remote machine, run bellow

remote_user@remote_host$ ipython notebook --no-browser --port=8899

On the local machine, run bellow:

local_user@local_host$ ssh -N -f -L localhost:8888:localhost:8899 remote_user@remote_host