Skip to content

Commit

Permalink
Push essentials-cloudshell key to the VM for AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiddelkoop committed Feb 3, 2022
1 parent 46fdae5 commit 32a55bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/aws-create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ echo "+++ configuring VM"

ssh ec2-user@$IP -A <<EOF
sudo ln -s /home/ec2-user /home/$NAME
sudo ln -s /home/ec2-user /home/cloudshell-user
sudo yum install -y git python3-pip python3-venv bash-completion
ssh-keyscan ${GITHUB} > .ssh/known_hosts
git config --global color.ui auto
Expand All @@ -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"
Expand Down

0 comments on commit 32a55bb

Please sign in to comment.