Deploy with Gitlab and rsync

I want to use rsync to transfer the public directory to my webspace. The repo can be found here. https:// gitlab.com/joklein/kwpse

I get the following error message:

$ mkdir “${HOME}/.ssh”
$ echo “${SSH_HOST_KEY}” > “${HOME}/.ssh/known_hosts”
$ echo “${SSH_PRIVATE_KEY}” > “${HOME}/.ssh/id_rsa”
$ chmod 700 “${HOME}/.ssh/id_rsa”
$ rsync -hrvz --delete --exclude=_ -e “ssh -i /is/htdocs/wp10750459_IZGDDXPH5A/.ssh/id_rsa” public/ wp10750459@kwpse.com:/www/test/
Warning: Identity file /is/htdocs/wp10750459_IZGDDXPH5A/.ssh/id_rsa not accessible: No such file or directory.
Warning: Permanently added the RSA host key for IP address ‘178.77.87.16’ to the list of known hosts.
Permission denied, please try again.
Permission denied, please try again.
Received disconnect from 178.77.87.16: 2: Too many authentication failures for wp10750459 from 165.227.205.112 port 40840 ssh2
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.1]
ERROR: Job failed: exit code 1

I did the following.

ssh-keygen -t rsa -C “your.email@example.com” -b 4096 This command has generated id_rsa and id_rsa.pub

copy id_rsa to SSH_PRIVATE_KEY on secret variables

ssh-keyscan example.com copy output to SSH_HOST_KEY

Here is my .gitlab-ci.yml

image: monachus/hugo:latest

before_script:
  - apt-get update
  - apt-get --yes --force-yes install git ssh rsync
  - git submodule update --init --recursive

pages:
  script:
  - hugo
  - mkdir "${HOME}/.ssh"
  - echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts"
  - echo "${SSH_PRIVATE_KEY}" > "${HOME}/.ssh/id_rsa"
  - chmod 700 "${HOME}/.ssh/id_rsa"
  - rsync -hrvz --delete --exclude=_ -e "ssh -i ${HOME}/.ssh/id_rsa" public/ user@example.com:www/test/

  artifacts:
    paths:
    - public
  only:
  - master

test:
  script:
  - hugo
  except:
  - master