diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 29eb464c85d9039680a744196e7451c86f81977d..b938e799e56c6eacf1030115758f4a9a0f5518b7 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,7 +75,8 @@ deploy_to_phoenix:
 
   script:
     - ls -l /root/.ssh
-    - chmod 700 /root/.ssh
+    - chmod 600 /root/.ssh/config
+    - chown root /root/.ssh/config
     - ls -l /root/.ssh
     - ansible-playbook -i ansible/hosts.cfg ansible/playbook.yml