简体   繁体   English

尝试将私有密钥添加到 AWS Opsworks 时出错

[英]Error on trying to add Private key to AWS Opsworks

I am trying to set up a new rails app on AWS Opswork.我正在尝试在 AWS Opswork 上设置一个新的 Rails 应用程序。

While trying to add a new app, I keep getting the error "Please provide a valid SSH key"在尝试添加新应用程序时,我不断收到错误“请提供有效的 SSH 密钥”

I have created a public-private key pair using ssh-keygen, added the public key in Github and I am trying to add the PRIVATE key in AWS Opswork page.我已经使用 ssh-keygen 创建了一个公私密钥对,在 Github 中添加了公有密钥,我正在尝试在 AWS Opswork 页面中添加私有密钥。 But I keep getting the SSH key error.但我不断收到 SSH 密钥错误。 在此处输入图片说明

Please help.请帮忙。

It seems that OpsWorks only accepts keys in PEM format, which is not the default on newer versions of OpenSSH. OpsWorks 似乎只接受 PEM 格式的密钥,这不是较新版本的 OpenSSH 的默认值。 ( BEGIN RSA PRIVATE KEY vs BEGIN OPENSSH PRIVATE KEY ). (开始BEGIN RSA PRIVATE KEY与开始BEGIN OPENSSH PRIVATE KEY )。

Convert the key in-place by running ssh-keygen -p -N "" -m pem -f privatekeyfile通过运行ssh-keygen -p -N "" -m pem -f privatekeyfile就地转换密钥

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM