Added an RSA deploy key to my private github repo, but when I add it to my OpsWorks rails app (paste public key into the "Repository SSH Key" field), and try to save, I get the error message "Please provide a valid SSH key".
Key was generated using ssh-keygen defaults (RSA 2048, no passphrase).
Not sure what else could be amiss.
Ah ... silly me.
AWS OpsWorks is asking for the key that will be deployed to the app server, so it needs the private key (including -----BEGIN RSA PRIVATE KEY----- and -----END RSA PRIVATE KEY----- delimiters).
The github deploy key, obviously, is the public key.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With