New274+ blocks and 249+ tools are now fully documented
Cloud & Infrastructure
Tool

SSH

Run remote commands and manage files on servers over SSH/SFTP

Connect to remote hosts over SSH to execute commands and scripts, and manage files and directories over SFTP. Supports password and private-key authentication. The connection is opened by a Zelaxy server route using the Node ssh2 client and closed after each operation.

Overview

PropertyValue
Typessh
CategoryTool — Cloud & Infrastructure
AuthPassword or Private Key

Operations

OperationTool IDDescription
Execute Commandssh_execute_commandRun a single shell command, capture stdout/stderr/exit code
Run Scriptssh_run_scriptRun a multi-line shell script
Read Filessh_read_fileRead a remote file over SFTP (utf8 or base64)
Write Filessh_write_fileWrite/overwrite a remote file over SFTP
Append Filessh_append_fileAppend content to a remote file
Delete Filessh_delete_fileDelete a remote file
Rename / Movessh_renameRename or move a remote file or directory
File Statssh_file_statGet size, permissions, and timestamps for a path
Change Permissionsssh_change_permissionschmod a remote path with an octal mode
List Directoryssh_list_directoryList entries of a remote directory
Create Directoryssh_create_directoryCreate a directory (optionally recursive)
Remove Directoryssh_remove_directoryRemove a directory (optionally recursive)
Check Existsssh_check_existsCheck whether a remote path exists

Configuration

SettingTypeDescription
HostShort inputSSH server hostname or IP
PortShort inputSSH port (default 22)
UsernameShort inputSSH username
AuthenticationDropdownPassword or Private Key
PasswordPasswordSSH password (password auth)
Private KeyLong inputPEM/OpenSSH private key (key auth)
Key PassphrasePasswordPassphrase protecting the key (optional)
OperationDropdownWhich of the 13 operations to run
PathShort inputRemote path for file/directory operations
ContentLong inputContent for write/append
New PathShort inputDestination for rename/move
Permission ModeShort inputOctal mode for change permissions (e.g. 755)
RecursiveSwitchRecursive create/remove directory
EncodingDropdownutf8 or base64 for file content

Outputs

FieldTypeDescription
stdoutstringCommand/script standard output
stderrstringCommand/script standard error
codenumberCommand/script exit code
contentstringFile contents (read file)
entriesjsonDirectory entries (list directory)
infojsonFile metadata (file stat)
existsbooleanWhether a path exists (check exists)
errorstringError message if the operation fails

Example: Deploy on push

Workflow:

[Webhook: repo push] → [SSH: Run Script (git pull && restart)] → [Slack: Notify]

Trigger on a repository push, run a deploy script on the target server over SSH, then post the command output to Slack.

Tips

  • Prefer key auth — supply a private key (and passphrase if set) instead of a password for non-interactive automation.
  • Recursive directory removal uses rm -rf on the remote host; use it carefully.
  • Base64 encoding lets you transfer binary file contents safely through the text-based workflow.
  • The ssh2 package must be installed on the server (bun add ssh2) for this tool to run.