Bitbucket Cloud Pipe "atlassian/scp-deploy" error - "Load key /root/.ssh/pipelines_id: invalid format"
プラットフォームについて: Cloud のみ - この記事は、 クラウド プラットフォームのアトラシアン製品にのみ適用されます。
要約
Bitbucket Cloud Pipe provides an alternate SSH_KEY to use instead of the key configured in the Bitbucket Pipelines admin screens, which is used by default.
Example:
pipe
- pipe: atlassian/scp-deploy:1.2.1
variables:
USER: '<string>'
SERVER: '<string>'
REMOTE_PATH: '<string>'
LOCAL_PATH: '<string>'
SSH_KEY: '<string>' # Optional.
Sometimes the Pipe will fail with 'Load key "/root/.ssh/pipelines_id": an invalid format error as shown below:
pipe output error:
debug1: Next authentication method: publickey
debug1: Trying private key: /root/.ssh/pipelines_id
Load key "/root/.ssh/pipelines_id": invalid format
debug1: No more authentication methods to try.
mdo-bitbucket@xx.xx.xx.xx: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
ソリューション
As stated in the altassian/ssh-run pipe documentation, the alternative SSH_KEY should be base64 encoded as per the instructions given in the using multiple ssh keys documentation, which should fix the "invalid format" error.
最終更新日: 2024 年 1 月 23 日
Powered by Confluence and Scroll Viewport.