diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1233cf88215ecc58cb2a6cee3700f25a94936123..2e87f9bd874b7c941e503a33578d067b49f40eb7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -12,6 +12,10 @@ deploy-job:
         - echo "$id_rsa" | tr -d '\r' | ssh-add -
         - mkdir -p ~/.ssh
         - chmod 700 ~/.ssh
+        - ssh-keyscan 10.61.63.40 >> ~/.ssh/known_hosts
+        - ssh-keyscan 10.61.63.41 >> ~/.ssh/known_hosts
+        - chmod 644 ~/.ssh/known_hosts
+        
     script:
         - ssh root@10.61.63.40 "cd /usr/lib/ckan/default/src/ckan/ && git pull && service apache2 reload"
         - ssh root@10.61.63.41 "cd /usr/lib/ckan/default/src/ckan/ && git pull && service apache2 reload"
\ No newline at end of file