What are the requirements for AWS OpsWorks SSH keys?

amazon-web-services, github, ssh-keys

Solution

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.

Problem

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.

Original source