1:服务器端安装jupyter notebook
conda install notebook
2:服务器端启动jupyter notebook
jupyter notebook --no-browser --port=<PORT>
是你指定的端口号,比如9999
3:在本地连接服务器jupyter notebook
打开powershell,输入
# <PORT>就是你在服务器端输入的端口号
# <REMOTE_USER> 是你远程服务器的用户名
# <REMOTE_HOST> 是你远程服务器的网站ip
ssh -L 8080:localhost:<PORT> <REMOTE_USER>@<REMOTE_HOST>
接着在本地浏览器输入http://localhost:8080/就可以连了
links