将Windows上的Docker连接到Google Cloud Datalab

时间:2016-11-03 18:48:10

标签: windows docker ssh-keys google-cloud-datalab

我正在尝试遵循此https://cloud.google.com/datalab/docs/quickstarts/quickstart-gce Windows 10上的教程,但我收到SSH密钥错误。我已经尝试使用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

1 个答案:

答案 0 :(得分:2)

您的私钥文件应具有更严格的权限。尝试在chmod 600下的密钥上设置.ssh