I don’t know if it the right question to ask here. But I will do it anyway.
For my deployment of some of the web applications I have, I have bitbucket.
Now I want to deploy using ssh (connect to the server, do a
But I am a bit stuck .
I have added the ssh keys to the pipeline, but I think bitbucket pipeline file is wrong.
image: atlassian/default-image:latest pipelines: default: - step: deployment: staging script: - eval `ssh-agent -s` - ssh-add ~/.ssh/config - ls | ssh firstname.lastname@example.org -p 4000 - echo "Deploy step finished"
It keeps throwing this error
+ ssh-add ~/.ssh/config
ssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory
But when I look at the config file, it exists.
So I have like two questions. How can I connect to my ssh server (fix the error) and how can I run a command after I connected to the ssh server?