It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket pipeline scp deploy build failed. Giving permission denied error Edited

Hello ,

I am trying to deploy my  static website using bitbucket pipeline to our digitial oeacn droplet. For this purpose I am using scp deploy.

Below is my  bitbucket-pipeline.yml configuration

image: atlassian/default-image:latest
staging-test: -
deployment: staging
script: - pipe: atlassian/scp-deploy:0.3.4
USER: 'ritwik'
SERVER: '<ssh-url >'
REMOTE_PATH: '/var/www/html'


I get the below error message .



If I change the the  permission for "/var/www/html" that should solve the issue.But since this is a public website I dont want to change the file permissions.

My question is that can we execute scp deploy pipe with "sudo"?  

If not then what is the solution for this problem.




0 answers

Suggest an answer

Log in or Sign up to answer

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you