Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the requirements for AWS OpsWorks SSH keys?

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.

like image 938
cdn Avatar asked Apr 25 '13 23:04

cdn


1 Answers

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.

like image 95
cdn Avatar answered Oct 01 '22 00:10

cdn