Skip to main content

SSH

The SSH node executes commands and shell scripts on remote servers over a secure SSH connection. This is useful for server administration, deployment scripts, health checks, and any automation that requires running commands on remote Linux/Unix systems.

Before You Use This Node​

What you may needWhere to set it upWhy it matters
SSH server connectionConnectionsSave host, port, username, and authentication once, then reuse them.
Private key file, if key-based login is usedFilesStore the key file centrally and reference it from the SSH connection.
Common paths, commands, or server namesGlobal VariablesReuse common server values without retyping them.

Actions​

ActionDescription
ssh:executeCommandExecute a single command on the remote server
ssh:executeShellScriptExecute a multi-line shell script on the remote server

ssh:executeCommand​

Runs a single command on the remote server and captures the standard output and standard error.

Parameters

ParameterTypeRequiredDescription
commandstringYesThe command to execute
timeoutintegerNoCommand timeout in seconds. Defaults to 60
workingDirectorystringNoDirectory to execute the command in

Example: Check disk usage

ssh:executeShellScript​

Uploads and executes a multi-line shell script on the remote server. The script is written to a temporary file, made executable, run, and then cleaned up.

Parameters

ParameterTypeRequiredDescription
scriptstringYesThe shell script content (multi-line)
timeoutintegerNoScript timeout in seconds. Defaults to 120
shellstringNoShell interpreter to use. Defaults to /bin/bash
workingDirectorystringNoDirectory to execute the script in

Example: Log rotation script

Connection​

Requires an SSH connection configured in the Global Configurator:

FieldDescription
hostRemote server hostname or IP address
portSSH port. Defaults to 22
usernameSSH username
passwordSSH password (if using password authentication)
privateKeySSH private key content (if using key-based authentication)
passphrasePrivate key passphrase (if the key is encrypted)
strictHostKeyCheckingVerify the server's host key. Defaults to true

Configure under Connections > SSH in the Global Configurator.

Output​

Both actions return the command or script output:

If the command exits with a non-zero exit code, the step fails and the error output is captured in stderr: