From 6c59ea3ac9408b3f48ac2a75a7834c2e0498e55c Mon Sep 17 00:00:00 2001 From: leej3 Date: Fri, 1 Nov 2024 16:51:09 +0000 Subject: [PATCH] add note on public keys --- web/deploy/terraform/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/deploy/terraform/README.md b/web/deploy/terraform/README.md index 6ea3063..069e71f 100644 --- a/web/deploy/terraform/README.md +++ b/web/deploy/terraform/README.md @@ -14,7 +14,10 @@ You must set the following [repository secrets](https://github.com/nimh-dsst/osm * `AWS_REGION`: The AWS region where the deployments reside * `MONGODB_URI`: The URI of the MongoDB holding the data. This variable was temperamental. Please try saving it as a secret surrounded by single quotes `'`. * `SSH_PRIVATE_KEY`: The private SSH key used to ssh into the ec2 instances -* `SSH_PUBLIC_KEY`: The public SSH key used to ssh into the ec2 instances corresponding to the above private key +* `SSH_PUBLIC_KEY`: The public SSH key used to ssh into the ec2 instances + corresponding to the above private key (use `ssh-keygen -y -f + path/to/private/key > path/to/public/key` if you have lost the public key, and + `ssh-keygen -f key.pub -i -m PKCS8` to convert from RSA format) * `SSH_PROD_HOST`: The static IP address of the production ec2 instance * `SSH_STAGE_HOST`: The static IP address of the staging ec2 instance * `LETSENCRYPT_ADMIN_EMAIL`: The email address associated with the Let's Encrypt certificate