关于Google云端平台:datalab SSH密钥错误:(gcloud.compute.ssh)[/ usr / bin / ssh]

datalab SSH key ERROR: (gcloud.compute.ssh) [/usr/bin/ssh]

最近,当我尝试从云外壳连接到我的datalab VM时,即使我是项目负责人,我也会看到以下错误:

Connecting to datalab-vm1-1.
This will create an SSH tunnel and may prompt you to create an rsa key pair. To manage these keys, see https://cloud.google.com/compute/docs/instances/adding-removing-ssh-keys
Waiting for Datalab to be reachable at http://localhost:8081/
Permission denied (publickey).
ERROR: (gcloud.compute.ssh) [/usr/bin/ssh] exited with return code [255].
Connection broken
Attempting to reconnect...

任何想法如何解决这个问题?


这可能类似于https://github.com/googledatalab/datalab/issues/1936

这仅在旧的VM上发生,因此请尝试使用最新版本的gcloud(默认情况下,Cloud Shell应该具有)创建新的datalab VM。