I followed this instruction
https://confluence.atlassian.com/bitbucket/use-ssh-keys-in-bitbucket-
pipelines-847452940.html
and I made:
1. I created SSH key using in Settings -> Pipelines - SSH Keys.
2. I copied this public key to ~/.ssh/authorized_keys on the remote host.
3. I added the IP of my server toKnown hosts.
I have such bitbucket-pipelines.yml:
image: php:7.1.1
pipelines:
custom: # Pipelines that are triggered manually
deployment-to-prod:
- step:
script:
- apt-get update && apt-get install -y unzip
- apt-get -y install openssh-server
- ssh webmaster@XXX.XXX.XX.XX sh /home/webmaster/scripts/update_live.sh
When I run this pipeline I have:
I have the same issue. Where you able to solve this problem?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.