我正在尝试关注这个 https://cloud.google.com/datalab/docs/quickstarts/quickstart-gce Windows 10 上的教程,但我收到 SSH key 错误。我已经尝试使用 Cygwin chmod 和 Windows 属性 GUI 对文件的权限进行各种修改,但我无法摆脱这个错误,即使在删除其他用户的所有权限之后也是如此。我该如何解决这个问题?
docker run -it -p "8081:8080" -v "/C/Users/***/Documents/:/content" -e "GATEWAY_VM=spheric-basis-
148416/us-east1-b/lala123" gcr.io/cloud-datalab/datalab:local
Updated property [core/project].
Updated property [compute/zone].
Will connect to the kernel gateway running on the GCE VM lala123 as ****
Warning: Permanently added 'compute.7788356429671748568' (ECDSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0755 for '/content/datalab/.config/.ssh/google_compute_engine' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
key_load_private_type: bad permissions
最佳答案
您的私钥文件应该有更严格的权限。尝试在 .ssh
下的 key 上设置 chmod 600
。
关于windows - 将 Windows 上的 Docker 连接到 Google Cloud Datalab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40409103/