Is it possible to do an SCP deployment to multiple servers, or are there any workarounds or recommended practices to accomplish this?
Hello and welcome to the community.
This is possible, you can generate an SSH key pair in the repository's SSH keys page (from Repository settings), add the address of each server in the Known hosts in the same page, and then add the public key to each of your servers.
The process is explained here:
If you want to use a different SSH key pair per server, you can have a look at the section Use multiple SSH keys in your pipeline:
You can use the SCP Deploy pipe for purposes of deployment:
You can use the pipe multiple times in the bitbucket-pipelines.yml file, one for each server.
Please feel free to let me know if you have any questions.
Kind regards,
Theodora
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.