The following sets a simple password based login, which is handy:
jupyter notebook --generate-config
jupyter notebook password
Unfortuantely, hashed password is sent unencrypted by your browser here. So read up here to do this in a better way.
Starting jupyter on the server can be done inside a screen
session:
screen -S jupyter-session #can also use nohup or tmux here
jupyter notebook --no-browser --port=8888
SSH tunnel can be setup by running the following on your local machine, and then opening the browser (http://localhost:8889
)
ssh -N -f -L localhost:8889:localhost:8888 -p 22 theja@192.168.0.105