From 32a55bbaeda1253a0ec260d70df46e862663d9ec Mon Sep 17 00:00:00 2001 From: Timothy Middelkoop Date: Wed, 2 Feb 2022 18:23:48 -0600 Subject: [PATCH] Push essentials-cloudshell key to the VM for AWS --- scripts/aws-create.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/aws-create.sh b/scripts/aws-create.sh index 643f523..2f8a073 100755 --- a/scripts/aws-create.sh +++ b/scripts/aws-create.sh @@ -52,6 +52,7 @@ echo "+++ configuring VM" ssh ec2-user@$IP -A < .ssh/known_hosts git config --global color.ui auto @@ -60,6 +61,7 @@ git config --global pull.ff only git config --global user.name "$(git config user.name)" git config --global user.email "$(git config user.email)" git clone --branch $BRANCH $REPO +echo $(cat ~/.ssh/id_essentials-cloudshell.pub) >> .ssh/authorized_keys EOF echo "+++ configure ~/.ssh/$VM.config"