Add SSH service connection using a build pipeline in azure devops

1.5k Views Asked by At

How can I add a new SSH service connection using a build pipeline in Azure DevOps? I would like to specify the username ip and key and grant access to all pipelines

SSH service connection using the pipeline. Didnt get any results to do this!

1

There are 1 best solutions below

8
Maytham Fahmi On

As far as I know. It is not possible to automate creating an SSH service connection.

Normally Microsoft offers az devops service-endpoint command line to create a service connection for azure resource manager or GitHub. But does not offer SSH creation. If someone else can show something else I will remove my answer.


Original answer:

From your project setting, click on Service connections, and search for SSH

enter image description here

You can add the parameter for your ssh and then at the end check Grant access permission to all pipelines:

enter image description here

With that said there is an example of Azure pipeline connect to an ssh server and then copy files into it