Using Rsync-deploy to deploy code to EC2

James July 4, 2022

Hi guys,

I have an issue with rsync-deploy, I used rsync-deploy to sync my code to ec2 but get the issue Permission denied

I have created a SSH key and added it to ~/.ssh/authorized_keys on my server,

I also updated the known hosts and base64 this key to add it to the repo variable, what am I doing wrong?

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 5, 2022

Hello @James ,

Thank you for reaching out to Atlassian Community!

From my understanding, you are using Atlassian's rsync-deploy pipe. If that is the case, in order to investigate further, could you please share with us : 

  • The bitbucket-pipelines.yml file of your build
  • The logs from the failed build containing the error message

Also, you can try running the pipe with the DEBUG variable, so it will output more logs that can help to narrow down the issue : 

- pipe: atlassian/rsync-deploy:0.7.1
  variables:
    [... other variables]
    DEBUG: 'true'

Once you run in debug mode, please share the output of the pipe with us. Please make sure to sanitize any sensitive information from the logs.

Thank you, @James .

Kind regards,

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events