Google compute engine Google Dataproc-无法通过SSH连接

Google compute engine Google Dataproc-无法通过SSH连接,google-compute-engine,google-cloud-dataproc,google-cloud-datalab,Google Compute Engine,Google Cloud Dataproc,Google Cloud Datalab,我在CloudDataProc集群上安装了一个CloudDataLab笔记本,遵循 创建集群之后,我在云Shell中创建了一个到主节点的SSH隧道,并使用云Shell连接到集群接口。在这之后,我可以访问Jupyter笔记本。我使用-v verbose选项查看SSH连接日志: gcloud compute ssh cluster-datalab-m --project=abcxyz-123 --zone us-west1-a \ -- -v -4 -N -L 8080:cluster-da

我在CloudDataProc集群上安装了一个CloudDataLab笔记本,遵循

创建集群之后,我在云Shell中创建了一个到主节点的SSH隧道,并使用云Shell连接到集群接口。在这之后,我可以访问Jupyter笔记本。我使用-v verbose选项查看SSH连接日志:

gcloud compute ssh cluster-datalab-m --project=abcxyz-123 --zone us-west1-a \
    -- -v -4 -N -L 8080:cluster-datalab-m:8080
但是过了一段时间,我收到一个弹出窗口,说无法建立到笔记本服务器的连接。笔记本将继续尝试重新连接。检查网络连接或笔记本服务器配置。我的集群停止响应任何命令

当我查看云Shell上的SSH输出时,我看到此时正在请求多个通道

仅在断点期间预览SSH日志:

debug1: channel 1: new [direct-tcpip]
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 2: new [direct-tcpip]
debug1: channel 1: free: direct-tcpip: listening port 8080 for cluster-datalab-m port 8080, connect from 127.0.0.1 port 52832 to 127.0.0.1 port 8080, nchannels 3
debug1: channel 2: free: direct-tcpip: listening port 8080 for cluster-datalab-m port 8080, connect from 127.0.0.1 port 52833 to 127.0.0.1 port 8080, nchannels 2
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 1: new [direct-tcpip]
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 2: new [direct-tcpip]
debug1: channel 2: free: direct-tcpip: listening port 8080 for cluster-datalab-m port 8080, connect from 127.0.0.1 port 52837 to 127.0.0.1 port 8080, nchannels 3
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 2: new [direct-tcpip]
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 3: new [direct-tcpip]
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 4: new [direct-tcpip]
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 5: new [direct-tcpip]
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
debug1: channel 6: new [direct-tcpip]
debug1: Connection to port 8080 forwarding to cluster-datalab-m port 8080 requested.
我手动关闭了这个SSH连接,然后试图通过单击计算引擎控制台上的SSH按钮将SSH连接到主节点,但即使这样也花费了很多时间,并且没有成功完成

我查看了这个,但在主节点中找不到任何/etc/sshguard文件夹,因此我认为这不是我的案例中的问题。主节点运行的是Debian 8.10


有什么方法可以确保SSH连接和Jupyter笔记本持续工作吗?

我们已经在更新了文档。使用云shell对Datalab有效,但对Jupyter无效。CloudShell预览仅支持HTTP,但Jupyter使用websockets

相反,您应该遵循设置SOCKS代理并将Chrome指向它的步骤。有一个名为launch-jupyter-interface.sh的便捷bash可以为您实现这一点。您只需修改它,以指向您的Chrome安装


还提到了使用该脚本。

您可以在项目或实例上启用操作系统登录功能元数据值