##// END OF EJS Templates
Update docs on notebook password....
Thomas Kluyver -
Show More
@@ -219,15 +219,28 b' key bindings you need to remember are:'
219 Security
219 Security
220 ========
220 ========
221
221
222 You can protect your notebook server with a *very* simple single-password by
222 You can protect your notebook server with a simple single-password by
223 setting the :attr:`NotebookApp.password` configurable. It is best to do this in
223 setting the :attr:`NotebookApp.password` configurable. You can prepare a
224 your :file:`ipython_notebook_config.py`, e.g.::
224 hashed password using the function :func:`IPython.lib.security.passwd`:
225
225
226 # Password to use for web authentication
226 .. sourcecode:: ipython
227 c.NotebookApp.password = u'super secret'
227
228 In [1]: from IPython.lib import passwd
229 In [2]: passwd()
230 Enter password:
231 Verify password:
232 Out[2]: 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
233
234 .. note::
228
235
229 because specifying it on the command-line will make it visible to other
236 :func:`~IPython.lib.security.passwd` can also take the password as a string
230 processes on your machine with access to :command:`ps`.
237 argument. **Do not** pass it as an argument inside an IPython session, as it
238 will be saved in your input history.
239
240 You can then add this to your :file:`ipython_notebook_config.py`, e.g.::
241
242 # Password to use for web authentication
243 c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
231
244
232 When using a password, it is a good idea to also use SSL, so that your password
245 When using a password, it is a good idea to also use SSL, so that your password
233 is not sent in the clear. You can start the notebook to communicate via a secure
246 is not sent in the clear. You can start the notebook to communicate via a secure
General Comments 0
You need to be logged in to leave comments. Login now