SSH Command (Dynamic Host)

Execute SSH commands on a host dynamically provided by item input

SSH Command (Dynamic Host)

AI-generated

Summary

Connects to an SSH host for each input item, runs the configured command, and returns the combined standard output and standard error. Resolve the host from a field in the item JSON or use the Host Field or Host value directly; the node tries the configured ports in order.

Inputs

  • Host Field or Host (required) — If this value matches a property name in the input item's JSON, the node uses that property's value as the host. Otherwise, it treats the value itself as the hostname or IP address.
  • Port — One port or a comma-separated list tried in order. Each connection attempt has a 10-second ready timeout. Invalid or empty port lists fall back to port 22.
  • Username (required) — SSH username.
  • Password — Password authentication. If a private key is supplied, key authentication is configured as well.
  • Private Key — Full SSH private key. Literal escaped newlines and flattened key text are normalized before use. A supplied key is preferred for authentication.
  • Private Key Passphrase — Passphrase for an encrypted private key.
  • Command (required) — Command to execute on the remote host.

Output shape

One output item per input item, each containing a JSON object.

On success, the object contains host, the port used, and output with standard output and standard error concatenated. If the host cannot be resolved or all connection attempts fail, the object contains an error instead. Input item pairing is preserved. The node automatically accepts the SSH host fingerprint.

Links

Discussion