google-cloud-platform - 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).
解决方案
根据我们关于使用操作系统登录管理实例访问的文档
- 禁用 OS Login 会恢复您在项目或实例元数据中配置的 SSH 密钥,但在实例上启用它会禁用这些实例上基于元数据的 SSH 密钥配置。
这就解释了为什么当您将其设置为 FALSE 时。您配置的 SSH 密钥现在可以使用。
推荐阅读
- javascript - 如何使用 React-router-dom 版本 6 useNavigate 和 typescript 传递参数
- r - Looping several dataframes into individual csv files in R
- r - Is abind console output incorrect?
- alexa - Alexa 技能默认意图覆盖
- javascript - JS:安装 readline-sync 后,断言 `(argc) == (5)' 失败。错误
- laravel - 不能在 Laravel + Vue 项目中使用 dd() 和 var_dump 内部函数?
- python - Tensorflow LSTM 比特币预测平线
- ruby-on-rails - 在带有postgresql的rails 6中使用order_by表达式和不同的true
- java - 有没有办法在构造函数中使用 Lombok 的 @builder 和一组有限的属性?
- mysql - 从 Mysql(Mariadb) 数据库中删除倒数第二行