[python之ipython] jupyter notebook在云端服务器上开启,本地访问

时间:2021-02-18 04:17:05

本地ssh到云端:
ssh username@xxx.xxx.xxx.xxx -L127.0.0.1:7777:127.0.0.1:8888
把云端的8888端口映射到本地的7777端口

云端运行指令:
jupyter notebook --ip=127.0.0.1 --allow-root

得到notebook地址之后,本地将端口号从8888更换为7777,即可访问。

作者:an0nym0us
链接:https://www.jianshu.com/p/7e99ddf63b72