Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 ssh connection issue

Hi team,


Can any one please respond my issue , it's urgent , actually i am using bitbucket pipeline to deploy my code into c-panel using ssh keys.

But i am facing error.



image: "ubuntu:16.04"
name: PHP
- pip
- "apt-get update -y"
- "apt-get install -y zip"
- "apt-get install php libapache2-mod-php -y"
- "apt-get install curl -y"
- "mkdir artifact"
- "zip -r ./artifact/ *"
- "apt-get install sshpass -y"
- "time sshpass -p 'password' scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG ./artifact/ username@ip:/home/unlimitedmembers/test"

- artifact/*.zip


I am getting error like permissions denied,

I have attached the build links also.!/results/37

Please review and reply ASAP . he priority is very high.


Steps :- I have followed


I have generated the ssh keys using ssh-keygen command and copy the public key into the bit-bucket access keys.









1 answer

0 votes
Peter Plewa Atlassian Team Oct 15, 2019

Hi @ve,

Firstly I would suggest following community thread at and our documentation both explain how to use SSH keys in your build.

If the problem still persist you could try contacting our support to take a look at your problem more specifically at



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Powering DevOps with Bitbucket Server & Data Center

Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster   ! While we’re all excited about the new improvements to Bitbucket ...

1,826 views 0 7
Read article

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