简体   繁体   中英

Error on trying to add Private key to AWS Opsworks

I am trying to set up a new rails app on AWS Opswork.

While trying to add a new app, I keep getting the error "Please provide a valid SSH key"

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. But I keep getting the SSH key error. 在此处输入图片说明

Please help.

It seems that OpsWorks only accepts keys in PEM format, which is not the default on newer versions of OpenSSH. ( BEGIN RSA PRIVATE KEY vs BEGIN OPENSSH PRIVATE KEY ).

Convert the key in-place by running ssh-keygen -p -N "" -m pem -f privatekeyfile

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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