Forums

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

Pipeline SFTP Permission denied publickey

bhavitk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 25, 2020

Hi,

 

I am able to connect to my server using ssh on my machine and same has been configured on Bitbucket SSH Key.

 

I have double verified SSH private key and public key still bitbucket is unable to authenticate to my server.

 

Screenshot 2020-07-26 at 4.49.40 AM.pngScreenshot 2020-07-26 at 4.47.45 AM.png

1 answer

0 votes
ktomk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2020

Can you check the pipe gets the configured SSH key mounted on /root/.ssh/id_*?

bhavitk
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 26, 2020

Yes it is. I have tired SSH Run pipeline and i am able to run command.

ktomk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 27, 2020

Okay, this is good to know. I have not specifically verified it, but it sounds to me that the SSH key is not further mounted from the pipelines container into the pipe container. My assumption here might be completely wrong as not verified, but maybe you can verify this. When the pipe is run, it should show all arguments passed to docker for the pipe, and if the pipe would not re-mount your configured SSH key, it is not available. Maybe the pipe you use has also some variables to set the SSH key path and then it's expected you specify it (via that pipe variable) explicitly. Hopefully this is leading you towards a working solution already. Please let me know.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events