DW
DataWells
← All Guides
⚙️

How to Secure Exposed Jupyter Notebook

Secure your exposed Jupyter Notebook server

Port 8888 · DevOps

Step 1.Set a password

Set a strong password for Jupyter access.

jupyter notebook password

Step 2.Bind to localhost

Only listen on localhost.

jupyter notebook --ip=127.0.0.1

Step 3.Use SSH tunnel

Access Jupyter through an SSH tunnel instead of exposing it.

ssh -L 8888:localhost:8888 user@server
After fixing:Use our Self-Check Tool to verify the port is no longer exposed.