Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to ssh server using pipeline

daansk44
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 5, 2019

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/configssh_askpass: exec(/usr/bin/ssh-askpass): No such file or directory

How can I connect to the ssh server and run a commando

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 11, 2019

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. :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events