1. 打开本地终端连接远程服务器
输入:
ssh -oPort=22 cynthia@192.168.200.88
输入密码:
******
2. 启动远程服务器的jupyter notebook
jupyter notebook --no-browser --port=8889
3. 打开本地终端新建窗口
输入:
ssh -N -f -L localhost:8686:localhost:8889 cynthia@192.168.200.88
输入密码:
******
4. 打来本地浏览器
输入网址:
http://localhost:8686
5. 如果出现Password or token
输入网址:
http://localhost:8686/?token=e9565ea487c22b5df18b5ef25cc3823f3dc044efdd9b3a9f
(在启动远程服务器jupyter notebook的终端窗口找到带有token的网址:http://localhost:8889/?token=e9565ea487c22b5df18b5ef25cc3823f3dc044efdd9b3a9f,将端口号8889改成8686:http://localhost:8686/?token=e9565ea487c22b5df18b5ef25cc3823f3dc044efdd9b3a9f。)