
Command
Command
yaml
type: "io.kestra.plugin.fs.ssh.Command"Examples
yaml
id: fs_ssh_command
namespace: company.team
tasks:
- id: command
type: io.kestra.plugin.fs.ssh.Command
host: localhost
port: "22"
authMethod: PASSWORD
username: foo
password: "{{ secret('SSH_PASSWORD') }}"
commands:
- ls
yaml
id: fs_ssh_command
namespace: company.team
tasks:
- id: command
type: io.kestra.plugin.fs.ssh.Command
host: localhost
port: "22"
authMethod: PUBLIC_KEY
username: root
privateKey: "{{ secret('SSH_RSA_PRIVATE_KEY') }}"
commands:
- touch kestra_was_here
yaml
id: ssh
namespace: company.team
tasks:
- id: ssh
type: io.kestra.plugin.fs.ssh.Command
authMethod: OPEN_SSH
host: localhost
password: "{{ secret('SSH_PASSWORD') }}"
commands:
- echo "Hello World"Properties
commands*Requiredarray
SubTypestring
Min items
1host*Requiredstring
authMethodstring
Default
PASSWORDPossible Values
PASSWORDPUBLIC_KEYOPEN_SSHenableSshRsa1booleanstring
Default
falseenvobject
SubTypestring
openSSHConfigPathstring
passwordstring
portstring
Default
22privateKeystring
privateKeyPassphrasestring
strictHostKeyCheckingstring
Default
nousernamestring
Outputs
exitCodeinteger
Default
0