Command
yaml
type: "io.kestra.plugin.fs.ssh.Command"
Send a command to a remote server using SSH.
Examples
yaml
id: "command"
type: "io.kestra.plugin.fs.ssh.Command"
host: localhost
port: 22
username: foo
password: pass
command: ls
Properties
commands
- Type: array
- SubType: string
- Dynamic: ✔️
- Required: ✔️
- Min items:
1
The list of commands to run on the remote server
host
- Type: string
- Dynamic: ✔️
- Required: ✔️
Hostname of the remote server
warningOnStdErr
- Type: boolean
- Dynamic: ❌
- Required: ✔️
- Default:
true
Use
WARNING
state if any stdErr is sent
password
- Type: string
- Dynamic: ✔️
- Required: ❌
Password on the remote server
port
- Type: string
- Dynamic: ✔️
- Required: ❌
- Default:
22
Port of the remote server
strictHostKeyChecking
- Type: string
- Dynamic: ❌
- Required: ❌
- Default:
no
Whether to check if the host public key could be found among known host, one of 'yes', 'no', 'ask'
username
- Type: string
- Dynamic: ✔️
- Required: ❌
Username on the remote server
Outputs
exitCode
- Type: integer
- Dynamic: ❓
- Required: ✔️
- Default:
0
The exit code of the entire Flow Execution
vars
- Type: object
- Dynamic: ❓
- Required: ❌
The value extracted from the output of the executed
commands