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!
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
You can add the parameter for your ssh and then at the end check Grant access permission to all pipelines:
With that said there is an example of Azure pipeline connect to an ssh server and then copy files into it