title | description | ms.assetid | ms.topic | ms.custom | ms.author | author | ms.date | monikerRange |
---|---|---|---|---|---|---|---|---|
SSH Deployment task |
SSH task for use in the jobs of all of your build and release pipelines in Azure Pipelines and Team Foundation Server (TFS) |
dcd2ed8f-5bc6-4fc5-8787-4d9f6fe63f65 |
reference |
seodec18 |
ronai |
RoopeshNair |
12/07/2018 |
>= tfs-2017 |
[!INCLUDE temp]
Use this task to run shell commands or a script on a remote machine using SSH. This task enables you to connect to a remote machine using SSH and run commands or a script.
::: moniker range="<= tfs-2018"
[!INCLUDE temp]
::: moniker-end
- The task supports use of an SSH key pair to connect to the remote machine(s).
- The public key must be pre-installed or copied to the remote machine(s).
::: moniker range="> tfs-2018"
[!INCLUDE temp]
::: moniker-end
Argument | Description |
---|---|
SSH endpoint | The name of an SSH service connection containing connection details for the remote machine. The hostname or IP address of the remote machine, the port number, and the user name are required to create an SSH service connection. - The private key and the passphrase must be specified for authentication. - A password can be used to authenticate to remote Linux machines, but this is not supported for macOS or Windows systems. |
Run | Choose to run either shell commands or a shell script on the remote machine. |
Commands | The shell commands to run on the remote machine. This parameter is available only when Commands is selected for the Run option. Enter each command together with its arguments on a new line of the multi-line textbox. To run multiple commands together, enter them on the same line separated by semicolons. Example: cd /home/user/myFolder;build NOTE: Each command runs in a separate process. If you want to run a series of commands that are interdependent (for example, changing the current folder before executing a command) use the Inline Script option instead. |
Shell script path | Path to the shell script file to run on the remote machine. This parameter is available only when Shell script is selected for the Run option. |
Interpreter command | Path to the command interpreter used to execute the script. Used when Run option = Inline. Adds a shebang line to the beginning of the script. Relevant only for UNIX-like operating systems. Please use empty string for Windows-based remote hosts. See more about shebang (#!) |
Arguments | The arguments to pass to the shell script. This parameter is available only when Shell script is selected for the Run option. |
Advanced - Fail on STDERR | If this option is selected (the default), the build will fail if the remote commands or script write to STDERR. |
Control options | See Control options |
- RSA
- DSA
- aes256-cbc
- aes192-cbc
- aes128-cbc
- blowfish-cbc
- 3des-cbc
- arcfour256
- arcfour128
- cast128-cbc
- arcfour
For OpenSSL v1.0.1 and higher (on agent):
- aes256-ctr
- aes192-ctr
- aes128-ctr
For OpenSSL v1.0.1 and higher, NodeJS v0.11.12 and higher (on agent):
- aes128-gcm
- aes128-gcm@openssh.com
- aes256-gcm
- aes256-gcm@openssh.com
This task is open source on GitHub. Feedback and contributions are welcome.
[!INCLUDE qa-ssh-supported-keys]
[!INCLUDE qa-agents]
::: moniker range="<= tfs-2018"
[!INCLUDE qa-versions]
::: moniker-end