Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How do I run command over SSH in a pipeline?

moigagoo April 4, 2017

I'm doing everything by this guide: https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-pipelines-847452940.html

Generated the keys, appended the public key to ~/.ssh/authorized_keys on the remote hsot, added the remote host to known hosts. However, my builds fail with `Permission denied (publickey)`.

1 answer

1 accepted

0 votes
Answer accepted
moigagoo April 4, 2017

My bad. I forgot to specify the username for ssh login.

Richard Fitzjohn April 13, 2017

Hi Konstantin - I'm having troubles using the generated SSH keys in my pipelines. Could you show me the example script/command that you are using to add it?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events