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