jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.57k stars 4.85k forks source link

Invaid Credentials #5368

Open samyakag opened 4 years ago

samyakag commented 4 years ago

I'm running my jupyter notebook on a remote server and then porting it to my laptop. It asks me for credentials which it always shows as Invalid. I have already tried multiple solutions like deleting the config folder, changing the password, removing the hashed password from JSON file, modifying the cofig.py file in the config folder to not ask for a password but it still asks for a password. PS - I'm fine with not having a password as well for now.

kevin-bates commented 4 years ago

Even though you disabled password protection, I suspect you're encountering the default authentication mechanism of having to enter a token - which should be displayed on the notebook server console at startup - and similar to:

    Or copy and paste one of these URLs:
        http://localhost:8888/?token=3bb7597968100c651ffe95097d20f9aa3ad14771c248dce5
     or http://127.0.0.1:8888/?token=3bb7597968100c651ffe95097d20f9aa3ad14771c248dce5

As a result, entering anything other than the token value (3bb7597968100c651ffe95097d20f9aa3ad14771c248dce5) will result in an invalid credentials message.

If you want to disable both forms, you need to set both attributes to the empty string - as noted in the docs: https://jupyter-notebook.readthedocs.io/en/latest/security.html#alternatives-to-token-authentication.