From 806d9f307b23c49ca8b4b3093455e8c15ff20823 Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Wed, 20 Apr 2022 14:27:17 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d72be17..7234555 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -44,7 +44,8 @@ deploy-period: - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - - mkdir -p ~/.ssh - chmod 700 ~/.ssh - - ssh-keyscan 192.168.1.19 + - ssh-keyscan 192.168.1.19 >> ~/.ssh/known_hosts + - chmod 644 ~/.ssh/known_hosts script: - ssh ahosking@192.168.1.19 "cd /home/ahosking/period && git pull origin master && exit" only: