我正在尝试连接到远程服务器上运行的jupyter笔记本。 下面的代码已经工作了好几天,可以将在我的 ubuntu 服务器上的端口上运行的 jupyter 笔记本转发到我的 mac。 它今天停止了。 有谁知道问题可能是什么? 还有谁知道我如何在我的 ubuntu 服务器上打开端口,这样我就不需要下面的代码了?
法典:
ssh -L 8000:localhost:8888 username@111.111.11.122
更新:
法典:
jupyter notebook --no-browser --port=8889
消息:
WARNING: The conda.compat module is deprecated and will be removed in a future release.
[I 14:11:23.334 NotebookApp] [nb_conda_kernels] enabled, 2 kernels found
[I 14:11:23.343 NotebookApp] Writing notebook server cookie secret to /run/user/1000/jupyter/notebook_cookie_secret
[I 14:11:24.175 NotebookApp] Serving notebooks from local directory: /home/username
[I 14:11:24.175 NotebookApp] The Jupyter Notebook is running at:
[I 14:11:24.175 NotebookApp] http://localhost:8889/?token=d111b8540568567c80796a3be5cf53229fe38360b411a4dd
[I 14:11:24.175 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:11:24.178 NotebookApp]
To access the notebook, open this file in a browser:
file:///run/user/1000/jupyter/nbserver-77790-open.html
Or copy and paste one of these URLs:
http://localhost:8889/?token=d111b8540568567c80796a3be5cf53229fe38360b411a4dd
更新:
法典:ssh -L 8888:本地主机:8889 username@111.111.11.122
消息:
绑定:地址已在使用channel_setup_fwd_listener_tcpip:无法侦听端口:8888无法请求本地转发。
我时常遇到同样的问题。您可以尝试重新启动远程 jupyter 服务器(该链接包含终止现有服务器并启动新服务器的信息(。或者尝试其他端口号。顺便说一句,请分享您面临的确切错误。
[https://coderwall.com/p/ohk6cg/remote-access-to-ipython-notebooks-via-ssh][1]
将"ipython"更改为"jupyter",并确保jupyter同时安装在远程计算机和您的计算机上。
iPython 笔记本 --no-browser --port=8889
jupyter notebook --no-browser --port=8889
这是因为您已经在本地计算机上使用端口 8888 打开了另一个 Jupyter 笔记本。因此,解决方案只是选择不同的端口号,例如 8890 或除 8888 以外的端口号。
问题似乎是我需要在本地计算机上的浏览器中键入 localhost:8888。我一直在远程机器上打开 jupyter 笔记本服务器的端口中键入,所以 localhost:8889。例
jupyter notebook --no-browser --port=8889
其次
ssh -N -f -L localhost:8888:localhost:8889 username@111.111.11.122
砰��