【发布时间】:2021-11-18 22:57:54
【问题描述】:
我正在尝试通过 ssh 远程连接使用 Jupyter notebook。连接和笔记本在小型 jupyter 笔记本上运行良好,但是当我在我的 jupyter 笔记本上添加更多单元格时,首先当我按下执行按钮时开始执行单元格的时间越来越长,然后最终断开连接,我需要每 20 秒重新输入一次密码,因为它一直断开连接。我收到以下错误/终端输出:
[15:46:43.714] Remote server is listening on 43791
[15:46:43.714] Parsed server configuration: {"serverConfiguration":{"remoteListeningOn":{"port":43791},"osReleaseId":"opensuse-leap","arch":"x86_64","webUiAccessToken":"","sshAuthSock":"","display":"","tmpDir":"/run/user/3012","platform":"linux","connectionToken":"aa11aaaa-1a11-1a11-a1a1-11111a1a1aa1"},"serverStartTime":147,"installUnpackCode":""}
[15:46:43.716] Starting forwarding server. localPort 59541 -> socksPort 52328 -> remotePort 43791
[15:46:43.718] Forwarding server listening on 59541
[15:46:43.718] Waiting for ssh tunnel to be ready
[15:46:43.722] Tunneled 43791 to local port 59541
[15:46:43.722] Resolved "ssh-remote+weller1" to "127.0.0.1:59541"
[15:46:43.723] [Forwarding server 59541] Got connection 0
[15:46:43.731] ------
[15:46:43.742] [Forwarding server 59541] Got connection 1
[15:46:43.988] [Forwarding server 59541] Got connection 2
[15:47:01.781] [Forwarding server 59541] Got connection 3
[15:47:01.782] [Forwarding server 59541] Got connection 4
[15:51:35.972] [Forwarding server 59541] Got connection 5
[15:52:28.188] [Forwarding server 59541] Got connection 6
[15:53:31.701] [Forwarding server 59541] Got connection 7
[15:54:04.297] [Forwarding server 59541] Got connection 8
[15:55:16.325] [Forwarding server 59541] Got connection 9
[15:58:21.682] ------
[15:58:21.683] SSH Resolver called for "ssh-remote+weller1", attempt 2, (Reconnection)
[15:58:21.683] SSH Resolver called for host: weller1
[15:58:21.683] Setting up SSH remote "weller1"
[15:58:21.687] Using commit id "7f6ab5485bbc008386c4386d08766667e155244e" and quality "stable" for server
[15:58:21.692] Install and start server if needed
[15:58:21.701] Running script with connection command: ssh -T -D 57477 weller1 bash
[15:58:21.705] Terminal shell path: C:\WINDOWS\System32\cmd.exe
[15:58:22.047] > ]0;C:\WINDOWS\System32\cmd.exe
[15:58:22.048] Got some output, clearing connection timeout
[15:58:23.588] > Password:
[15:58:23.588] Showing password prompt
[15:58:28.679] Got password response
[15:58:28.680] "install" wrote data to terminal: "*************"
[15:58:28.699] >
[15:58:31.639] > Password:
[15:58:31.640] Showing password prompt
[15:58:36.709] Got password response
[15:58:36.710] "install" wrote data to terminal: "**************"
[15:58:36.733] >
[15:58:42.020] > Password:
[
我尝试查看此堆栈溢出问题:VSCode Remote SSH Connection Failed 但不明白如何解决我的问题,我对 vscode 和 ssh 连接真的很陌生,我不明白他们在讲述的步骤答案.. 谁能帮帮我?
【问题讨论】:
标签: python visual-studio-code ssh jupyter-notebook