From 46d6ced5b46251095a9297909da95cb6ef7fca57 Mon Sep 17 00:00:00 2001 From: Souhaila Noor Date: Sun, 7 Nov 2021 09:24:40 -0600 Subject: [PATCH] updated ssh permissions --- .gitlab/.gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index b9ef214ff..efb828c44 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -200,6 +200,7 @@ deploy node for linux amd64: - eval `ssh-agent -s` - mkdir -p ~/.ssh - chmod 700 /root/.ssh + - chmod 600 /root/.ssh/authorized_keys - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' script: - AMI=$(aws ssm get-parameters --names /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-ebs --query 'Parameters[0].[Value]' --output text --profile $PROFILE)