Using rsync plugin "drillster/drone-rsync"

I am trying to set up quick CD scenario, and have this working in my test, but currently the same drone.yml file seems to fail on the actual repo I want to deploy. I believe it’s related to the RSYNC_KEY, which key is this? I thought It was the rsa private key, but can’t remember.

Error:
rsync -az --timeout=2400 --ignore-errors --omit-dir-times -e ‘ssh -p 22 -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no’ --include=./api/bin --include=./api/config --include=./api/lib --include=./api/models --include=./api/uploads --include=./api/package.json --include=./api/public --include=./api/routes --include=./api/views --include=./api/package.json --include=./api/app.js --exclude=./api/test --exclude=./api/views --exclude=./api/node_modules --exclude=.* --exclude=.drone.yml ./ [email protected]:/var/www/api …
0s
4
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
0s
5
rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]

The authorized key is set up on the remote server and again works in my test repo where I have the RSYNC_KEY set up properly, but forget what this actually represents :frowning:

Thanks in advance…

Sorry figured this out, I was adding the secret from the Drone UI and not via CLI, like so: http://readme.drone.io/usage/secret-guide/. Note: the way to add secrets changed between versions.