jupyter远程访问 学习礼记

之前 参考了

现 总结如下:

  • 如果只需要远程访问,生成配置文件后,仅修改一行即可!!!

c.NotebookApp.ip='*'


  • 但是为了方便,我们又做了一些令自己方便的事情:

c.NotebookApp.password = u'sha:ce.. # 刚才复制的那个密文

  • 又怕端口游走变动,为求稳定,我们写死了端口号:

c.NotebookApp.port =8888 #随便指定一个端口

  • 学习了加密

廖雪峰老师的《摘要算法》 https://www.liaoxuefeng.com/wiki/897692888725344/923057313018752
三介草《MD5和SHA1介绍》https://www.cnblogs.com/the4king/archive/2012/02/06/2340660.html

  • notebook加密使用sha1,但不是标准sha1密码串
  • python标准MD5和sha1加密(其实是摘要)可>import hashlib
  • hashlib.sha1(pwd)或者hashlib.md5(pwd)是主要的字符串加密方法
  • 返回.hexdigest()就看到加密串了
  • 加固定盐、加user盐,都可以变咸。

将来 需要注意:

  • jupyter远程是为了使 平板、手机、远程使用现成的python环境方便而开设的server,
    但:仅!限!本!人!(single user) 如官方文档【参考2】所说:
    If you allow multiple users to access a notebook server as it is described in this document, their commands may collide, clobber and overwrite each other. If you want a multi-user server, the official solution is JupyterHub.!
原文地址:https://www.cnblogs.com/scientist/p/11343227.html