Hi,
I'm on directadmin hosting and I'm trying to deploy to the hosting through bitbucket, I've created a pipeline to deploy using SCP, but I get the following error:
109 Status: Downloaded newer image for bitbucketpipelines/scp-deploy:1.5.0
What I'm doing wrong ? I'm new to pipelines. Please guide.
Thanks in advance.
Hey @Tapan Bhanot ,
and welcome to the Community!
It looks like you're using the variable SSH_KEY in the pipe to provide the private key to be used when authenticating to the external host, but this key is failing to load as it does not seem to be base64 encoded.
When providing a custom key as the SSH_KEY variable, you should follow the below steps :
script: - pipe: atlassian/scp-deploy:1.5.0 variables: <other variables> SSH_KEY: $MY_SSH_KEY # MY_SSH_KEY contains the base64 encoded value of the private ssh key
Alternatively, you can configure the ssh key directly in Pipelines by navigating to Repository Settings > SSH keys under Pipelines. This key will be used by default by the scp deploy pipe if you don't provide the SSH_KEY variable in its definition.
For more details about the scp deploy pipe and additional examples, the following documentation may also be of help :
I hope that helps! Let us know in case you have any questions.
Thank you, @Tapan Bhanot !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.