I am following https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html guide to create a pipeline to deploy my Java project to Digital Ocean, Centos droplet.
**What I have done**
image: openjdk:8
pipelines:
default:
- step:
caches:
- gradle
script:
- bash ./gradlew build
- bash ./gradlew run
- step:
name: Deploy to Dorplet server
script:
- cat deploy.sh | ssh <user>@<host>
- echo "Deploy step finished"
** ERRORS **
When I run the pipeline on Bitbucket I get the following ERROR
<span>Load key "/opt/atlassian/pipelines/agent/ssh/id_rsa": invalid format</span><span><a href="mailto:root@159.89.168.151" target="_blank" rel="noopener nofollow noreferrer"><user>@<IP></a>: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).</span><span>Pseudo-terminal will not be allocated because stdin is not a terminal.</span>