如何连接到远程Jupyter笔记本服务器?[关闭]

如何连接到远程Jupyter笔记本服务器?[关闭],第1张

如何连接到远程Jupyter笔记本服务器?[关闭]

如果您具有ssh访问将运行服务器的计算机的权限,请执行以下步骤:

1)在将运行 服务器 的机器上,执行:

jupyter notebook # To start the server with the default port forwarding (8888)

2)
下笔记本地址:它将在终端上显示给您:

http://localhost:8888/?token=<A_LONG_STRING_OF_NUMBERS_AND_LETTERS>

3)在 客户端 计算机上,可以远程访问服务器:

ssh -N -L localhost:8888:localhost:8888 <server_username>@<server_ip>

4)现在,打开浏览器以使用以下地址:

http://localhost:8888/?token=<THE_TOKEN>


附加信息 (在此处找到):可以更改设置服务器的端口

# In the serverjupyter notebook --no-browser --port=8889# In the clientssh -N -L localhost:8888:localhost:8889 <server_username>@<server_ip>


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/4945651.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-13
下一篇 2022-11-13

发表评论

登录后才能评论

评论列表(0条)

保存