Forums

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

Unable to SSH from pipeline when using own SSH keys

Matt Malone
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!
April 17, 2019

I've got a simple Pipeline script that pushes code to a remote repo. When using the Bitbucket generated keys, it works.

For ease of management, I'd like to share the same SSH key across multiple pipelines in multiple repos. I generated a new key using `ssh-keygen` with no options or passcode, and once it was added to my account, I was able to clone the repo locally without issue.

However, when the pipeline runs, it appears that the key isn't being loaded correctly. I've checked the key at /opt/atlassian/pipelines/agent/ssh/id_rsa is the correct one, and even tried copying it to ~/.ssh

The output from the SSH diagnostic below:

https://gist.github.com/mattmapadmi/b55752e365082e105a9b2b73189daf3a

 

The pipeline script:

https://gist.github.com/mattmapadmi/47fd70e3468a9a459c9bc02bf9c0b0cd

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events