首页 > 解决方案 > key pair not working at instance level in Google Cloud Platform

问题描述

I created a key pair with username with Puttygen. Public key was pasted at ssh key field in Instance edit form. Private key was included along with ip and username in Filezila for ftps.

The public key won't work at instance level neither at project level (if I include it at project Metadata section).

标签: google-cloud-platformssh-keysftpskey-pair

解决方案


根据我们关于使用操作系统登录管理实例访问的文档

  • 禁用 OS Login 会恢复您在项目或实例元数据中配置的 SSH 密钥,但在实例上启用它会禁用这些实例上基于元数据的 SSH 密钥配置。

这就解释了为什么当您将其设置为 FALSE 时。您配置的 SSH 密钥现在可以使用。


推荐阅读