title: Gitlab: Permission denied (publickey,keyboard-interactive). fatal: Could not read from remote repository
body: <p>I'm deploying my laravel project through CI/CD pipeline,
  when i trigger the deploy branch i got this error</p>
  <p>here is my gitlab-ci.yml code</p>
  <pre><code>before_script:
    - eval $(ssh-agent -s)
    - echo &quot;$SSH_PRIVATE_KEY&quot; | ssh-add -
    - mkdir -p ~/.ssh
    - '[[ -f /.dockerenv ]] &amp;&amp; echo -e &quot;Host *\n\tStrictHostKeyChecking no\n\n&quot; &gt; ~/.ssh/config'
  
  .change_file_permissions: &amp;change_file_permissions |
    find . -type f -not -path &quot;./vendor/*&quot; -exec chmod 664 {} \;
    find . -type d -not -path &quot;./vendor/*&quot; -exec chmod 775 {} \;
  
  deploy:
    stage: deploy
    script:
      - *change_file_permissions
      - ssh root@mywebsite.com &quot;cd /home/root/public_html/files &amp;&amp; git pull &quot;git@gitlab.com:groupname/project/nas-project.git&quot; dev &amp;&amp; exit&quot;
    environment:
      name: live
      url: mywebsite.com
    only:
      - dev
  </code></pre>