Bitbucket Pipeline deployment failed scp: Connection closed

Rika Mandasari September 11, 2023

Hi,
I tried to deploy from bitbucket pipeline to one of my VM on GCP

on bitbucket-pipelines.yml, I just do simple SCP from local bitbucket to remote path:

script:
- pipe: atlassian/scp-deploy:1.3.0
variables:
USER: 'my_user'
SERVER: '35.194.xx.xx'
REMOTE_PATH: '/var/www/html/TIS'
LOCAL_PATH: '${BITBUCKET_CLONE_DIR}/*'
SSH_KEY: 'my ssh key which encode to base64'
EXTRA_ARGS: ['-o', 'StrictHostKeyChecking=no']

here's the error:

Load key "/root/.ssh/pipelines_id": error in libcrypto
116
my user@35.194.xx.xx: Permission denied (publickey).
117
scp: Connection closed
118
✖ Deployment failed.


I can clone this repo from the remote path, so I assume there's nothing wrong with my ssh_key
how to fix this?
Thank you in advance

1 answer

2 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 12, 2023

Hi Rika,

There was a very similar question about this issue yesterday, perhaps from one of your colleagues?

You can check my reply here:

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events