远程访问服务器jupyter notebook

远程访问服务器jupyter notebook

使用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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值