1 生成jupyter notebook 配置文件(服务器端)
bash
jupyter notebook --generate-config
#Writing default config to: /home/shuailiu/.jupyter/jupyter_notebook_config.py
2 Ipython中设置密码(服务器端)

3 修改jupyter 配置文件(服务器端)
在最后添加如下几行
bash
c.NotebookApp.ip='*' #设置访问notebook的ip,*表示所有IP
c.NotebookApp.password = '' #填写刚刚复制的密钥
c.NotebookApp.open_browser = False # 禁止notebook启动时自动打开浏览器
c.NotebookApp.allow_root = True #允许root用户
c.NotebookApp.port =8890 #指定访问的端口,默认是8888。
c.NotebookApp.allow_remote_access = True # 是否允许远程访问
4 打开jupyter notebook(服务器端)

5 本地和服务器连接(本地)
bash
ssh -N -f -L localhost:8888:localhost:8888 -p 22 shuailiu@10.96.182.228

6 本地开启远程jupyter notebook(本地)
在token / password那边填密码/之前的token,就进入远程notebook了