SSH build task

Madhuri Gummalla

On the request of our Linux customers, we have shipped a new SSH build task that allows running commands or scripts on a remote server. This task is available on Visual Studio Team Services and will be available in the next release of Team Foundation Server for our on-premises customers.

Using the task is simple. You specify your SSH connection information in an SSH service endpoint, ensure the public key is setup on the remote machine and provide a script with your deployment or configuration steps to run on the remote machine. The task also allows specifying commands directly instead of a script file.

SSH task

Checkout the documentation and demo video!

Try it out and let us know if you have any feedback on our GitHub repository.

To learn more about cross platform development with Team Services, visit


1 comment

Discussion is closed. Login to edit/delete existing comments.

  • Lucas Reis 0

    My Release task always fail when I run commands on my VPS through SSH. Can you help me with this?I run a script on my server that stops docker, downloads some php and node dependencies, compiles them and starts the container again.
    It always shows my release as failed but nothin’ went wrong on the script. I bypassed it by disabling “Fail on STDERR” so all the tasks are executed, but it still shows my release as failed…

Feedback usabilla icon