Hi Peeps (I hope this is not a double post).
But I am trying to run a commando on a remote ssh server after I make a commit to the master branch
image: atlassian/default-image:latest
pipelines:
default:
- step:
deployment: staging
script:
- eval `ssh-agent -s`
- ssh-add ~/.ssh/config
- ls | ssh kkl@xxxxe.nl -p 4000
- echo "Deploy step finished"
I have added the ssh keys to bitbucket.
But it keeps throwing this error
+ ssh-add ~/.ssh/config
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
How can I connect to the ssh server and run a commando
This appears to be a duplicate post of this one: https://community.atlassian.com/t5/Bitbucket-questions/Connect-to-ssh-using-bitbucket-pipeline/qaq-p/1101013#U1105425
Let me know if that's not the case. But otherwise, lets discuss this in that question. :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.