远程访问服务器jupyter notebook
远程访问服务器jupyter notebook
远程访问服务器jupyter notebook
- 远程访问服务器jupyter notebook
- 使用ssh实现端口映射
- ssh问题
使用ssh实现端口映射
在远程电脑打开jupyter notebook,并指定端口
jupyter notebook --no-browser --port=8889
获得:
http://localhost:8889/?token=xxxxxx
然后在本机输入:
ssh -N -f -L localhost:8888:localhost:8889 username@serverIP
其中: -N 告诉SSH没有命令要被远程执行; -f 告诉SSH在后台执行; -L 是指定port forwarding的配置,远端端口是8889,本地的端口号的8888。
注意:username@serverIP替换成服务器的对应账号。
最后打开浏览器,访问:把上面的地址( http://localhost:8889/?token=xxxxxx)拷贝到浏览器,再把8889改为8888即可
参考:https://blog.csdn.net/weixin_45587004/article/details/123157336
ssh问题
当打开cmd输入ssh出错:
'ssh' 不是内部或外部命令, 但能连接服务器
ssh环境变量没设置好,添加ssh路径到环境变量,具体见:
https://blog.csdn.net/weixin_45132964/article/details/126635423