core.ssh.execute_command
Execute a command over SSH and return stdout, stderr, and exit status.
Secrets
Required secrets:ssh: required valuesPRIVATE_KEY.
Inputs
string
required
Command to execute on the remote host.
string
required
SSH host to connect to.
string
required
SSH username.
boolean
Whether to verify the remote host key before connecting. Disable only for first-contact or otherwise trusted hosts; PID isolation and nsjail do not protect against SSH man-in-the-middle attacks.Default:
true.string | null
Expected public host key for the target host in ā<key_type> <base64>ā format. Required when host_key_checking is enabled. For non-22 ports, the entry is stored as [host]:port.Default:
null.string | null
Password for the SSH user.Default:
null.integer
SSH port. Defaults to 22.Default:
22.number
Timeout in seconds for connection and command execution.Default:
30.0.