Using the SSH_KEY of the pipe https://bitbucket.org/atlassian/scp-deploy/src/master/
is not working.
Every time I get:
<span>scp -rp -i /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp -P 22 </span><span>Warning: Identity file /opt/atlassian/pipelines/agent/ssh/id_rsa_tmp not accessible: No such file or directory.</span><span>Host key verification failed.</span><span>lost connection</span>
This is my code:
- pipe: atlassian/scp-deploy:0.3.4
variables:
USER: $SSH_USER
SSH_KEY: $SSH_DEPLOY_KEY
SERVER: $SSH_SERVER
REMOTE_PATH: '~/back-develop/docker-compose.yml'
LOCAL_PATH: 'docker-compose.yml'
DEBUG: 'true'
EXTRA_ARGS: '-P $SSH_PORT'
<span>The `SSH_DEPLOY_KEY` is normally correct as it is working for the pipe `atlassian/ssh-run`. So it's a base64 encoding of the key that I added to my repository variables.</span>