Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket pipeline ssh connection issue

venkatcss October 14, 2019

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.

 

bitbucket-pipeline.yml

image: "ubuntu:16.04"
pipelines:
branches:
DevStaging:
-
step:
name: PHP
caches:
- pip
script:
- "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/artifact.zip *"
- "apt-get install sshpass -y"
- "time sshpass -p 'password' scp -o StrictHostKeyChecking=no -o LogLevel=DEBUG ./artifact/artifact.zip username@ip:/home/unlimitedmembers/test"
artifacts:

- artifact/*.zip

 

I am getting error like permissions denied,

I have attached the build links also.

https://bitbucket.org/ydtmeldev/subsforyou/addon/pipelines/home#!/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.

Regards,

venkat

 

 

 

 

 

 

1 answer

0 votes
Peter Plewa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 15, 2019

Hi @ve,

Firstly I would suggest following community thread at https://community.atlassian.com/t5/Bitbucket-questions/How-can-I-use-SSH-in-Bitbucket-Pipelines/qaq-p/347345 and our documentation https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html 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 https://support.atlassian.com/contact/.

Thanks,

Peter

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, atlassian community, job interviews, interview tips, career advice, interview preparation, job search, interview experiences, hiring process, atlassian careers, community discussion, interview best practices

Interview Tips & Pet Peeves ✍️

Join the discussion on interview best practices and common pitfalls. Share your experiences and learn from others in the Atlassian Community.

Share you experiences!
AUG Leaders

Atlassian Community Events