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: fs_ssh_proxy_command
namespace: company.team
tasks:
- id: command
type: io.kestra.plugin.fs.ssh.Command
host: host
username: user
authMethod: PASSWORD
password: "{{ secret('SSH_PASSWORD') }}"
proxyCommand: |
cloudflared access ssh --service-token-id {{ secret('SSH_PROXY_SERVICE_TOKEN_ID') }} --service-token-secret {{ secret('SSH_PROXY_SERVICE_TOKEN_SECRET') }} --hostname proxy_host
commands:
- mycmd
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
authMethod string
Default
PASSWORDPossible Values
PASSWORDPUBLIC_KEYOPEN_SSHenableSshRsa1 booleanstring
Default
falseenv object
SubTypestring
openSSHConfigPath string
password string
port string
Default
22privateKey string
privateKeyPassphrase string
proxyCommand string
strictHostKeyChecking string
Default
nousername string
Outputs
exitCode integer
Default
0