title: .gitlab-ci.yml Gitlab Deploy SFTP Not Working
body: <pre><code>deploy:
    stage: deploy
    script:
      - apt-get update -qq &amp;&amp; apt-get install -y -qq lftp
      #- lftp -u $DEPLOY_USER,$SFTP_PASSWORD $DEPLOY_HOST -e &quot;mirror -e -R -p ./dist/ new/ ; quit&quot;
      - lftp -c &quot;set ftp:ssl-allow no; debug; open -u root,$DEPLOY_PASSWORD -p 22 $DEPLOY_HOST; mirror -Rev ./ gitlab --verbose --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/&quot;
      - echo &quot;deployment complete&quot;
    # specify environment this job is using
    environment:
      name: staging
      url: https://xxxxxxxx.de/
    # needs artifacts from previous build
  </code></pre>
  <p>Why does the preceding <code>.gitlab-ci.yml</code> create the following error?</p>
  <p>new Fail -&gt;</p>
  <pre><code>--verbose --ignore-time --parallel=10 --exclude-glob .git* --exclude .git/&quot;
  ---- Running connect program (ssh -a -x -s -l root xx.xx.xxx.xx sftp)
  ---&gt; sending a packet, length=5, type=1(INIT), id=0
  &lt;--- The authenticity of host 'xx.xx.xxx.xx (xx.xx.xxx.xx)' can't be established.
  &lt;--- ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxx+xxxxxxxxxxxxxx.
  &lt;--- Are you sure you want to continue connecting (yes/no)? no
  &lt;--- 
  &lt;--- Host key verification failed.
  ---- Disconnecting
  ---- Running connect program (ssh -a -x -s -l root xx.xx.xxx.xx sftp)
  ---&gt; sending a packet, length=5, type=1(INIT), id=0
  &lt;--- The authenticity of host 'xx.xx.xxx.xx (xx.xx.xxx.xx)' can't be established.
  &lt;--- ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxx+xxxxxxxxxxxxx.
  &lt;--- Are you sure you want to continue connecting (yes/no)? no
  &lt;--- 
  &lt;--- Host key verification failed.
  mirror: Fatal error: Host key verification failed.
  ---- Disconnecting
  ERROR: Job failed: exit code 1
  </code></pre>