【问题标题】:google colab ssh connection timesout谷歌 colab ssh 连接超时
【发布时间】:2020-08-18 08:06:44
【问题描述】:

我正在尝试遵循众多教程和要点,例如:

https://gist.github.com/creotiv/d091515703672ec0bf1a6271336806f0 https://*.com/questions/48459804/how-can-i-ssh-to-google-colaboratory-vm/53252985#53252985

当我运行这些步骤时,似乎一切正常(我获得了 root 密码),但我确实看到了:

invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.

但不幸的是,在我在本地机器上执行以下所有步骤之后:

ssh -p17057 root@0.tcp.ngrok.io

我明白了:

ssh: connect to host 0.tcp.ngrok.io port 17057: Connection timed out

我在 vanilla Debian Buster 上 - 任何关于为什么会发生这种情况的指针对调试都非常有用

谢谢。

【问题讨论】:

    标签: ssh google-colaboratory ngrok


    【解决方案1】:

    我也无法通过 ssh 进入 ngrok tcp 隧道。我使用本地笔记本电脑作为 colab VM 的接入点。我所做的是在 AWS 上启动一个 EC2 实例并使用它。另外,我使用了 ssh 反向隧道并完全放弃了对 ngrok 的需求,因为 ec2 机器已经有一个公共 IP。在这里查看我的答案:https://*.com/a/63186681/4126114

    【讨论】: