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
useOpenSSHConfig: true
host: localhost
password: "{{ secret('SSH_PASSWORD') }}"
commands:
- echo "Hello World"
Properties
commands *Requiredarray
SubType string
Min items
1
host *Requiredstring
authMethod string
Default
PASSWORD
Possible Values
PASSWORD
PUBLIC_KEY
OPEN_SSH
enableSshRsa1 booleanstring
Default
false
env object
SubType string
openSSHConfigDir string
Default
~/.ssh/config
password string
port string
Default
22
privateKey string
privateKeyPassphrase string
strictHostKeyChecking string
Default
no
username string
Outputs
exitCode integer
Default
0
outputFiles object
SubType string