连接失败远程jupyter笔记本

问题描述 投票:0回答:2

我正在尝试连接到我的远程服务器上运行的jupyter笔记本。下面的代码已经工作好几天了,可以将我的ubuntu服务器端口上运行的jupyter笔记本转发到我的mac。它今天停了下来。有谁知道问题可能是什么?也有人知道如何在我的ubuntu服务器上打开端口,所以我不需要下面的代码?

码:

ssh -L 8000:localhost:8888 [email protected]

更新:

码:

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:localhost:8889 [email protected]

信息:

bind:地址已经在使用channel_setup_fwd_listener_tcpip:无法侦听端口:8888无法请求本地转发。

python-3.x jupyter-notebook ubuntu-server
2个回答
0
投票

我不时遇到同样的问题。您可以尝试重新启动远程jupyter服务器(该链接包含杀死现有服务器并启动新服务器的信息)。或尝试使用其他端口号。顺便说一句,请分享您面临的确切错误。

[https://coderwall.com/p/ohk6cg/remote-access-to-ipython-notebooks-via-ssh][1]

使用“jupyter”更改“ipython”并确保在远程计算机和计算机上都安装了jupyter。

IPython中 notebook --no-browser --port = 8889

jupyter notebook --no-browser --port=8889

0
投票

问题似乎是我需要在本地机器上的浏览器中键入localhost:8888。我一直在打开我打开jupyter笔记本服务器的端口,在我的远程机器上输入localhost:8889。例

jupyter notebook --no-browser --port=8889 

其次是

ssh -N -f -L localhost:8888:localhost:8889 [email protected]

砰的一声在这里。

© www.soinside.com 2019 - 2024. All rights reserved.