Use SSH to execute remote commands or scripts, transfer files, and manage files and directories. Connect to a reachable server with a password or an OpenSSH-format private key.
The actions also check whether commands or paths exist, list directory contents, and retrieve OS, architecture, uptime, disk, and memory information. Provide the remote path, command, or script inputs required by the selected operation.
Execute commands, transfer files, and manage remote servers via SSH. Supports password and private key authentication for secure server access.
Execute a shell command on a remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key commandstring Yes Shell command to execute on the remote server workingDirectorystring No Working directory for command execution
Parameter Type Description stdoutstring Standard output from command stderrstring Standard error output exitCodenumber Command exit code successboolean Whether command succeeded (exit code 0) messagestring Operation status message
Upload and execute a multi-line script on a remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key scriptstring Yes Script content to execute (bash, python, etc.) interpreterstring No Script interpreter (default: /bin/bash) workingDirectorystring No Working directory for script execution
Parameter Type Description stdoutstring Standard output from script stderrstring Standard error output exitCodenumber Script exit code successboolean Whether script succeeded (exit code 0) scriptPathstring Temporary path where script was uploaded messagestring Operation status message
Check if a command/program exists on the remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key commandNamestring Yes Command name to check (e.g., docker, git, python3)
Parameter Type Description commandExistsboolean Whether the command exists commandPathstring Full path to the command (if found) versionstring Command version output (if applicable) messagestring Operation status message
Upload a file to a remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key fileContentstring Yes File content to upload (base64 encoded for binary files) fileNamestring Yes Name of the file being uploaded remotePathstring Yes Destination path on the remote server permissionsstring No File permissions (e.g., 0644) overwriteboolean No Whether to overwrite existing files (default: true)
Parameter Type Description uploadedboolean Whether the file was uploaded successfully remotePathstring Final path on the remote server sizenumber File size in bytes messagestring Operation status message
Download a file from a remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key remotePathstring Yes Path of the file on the remote server
Parameter Type Description filefile Downloaded file stored in execution files remotePathstring Source path on the remote server
List files and directories in a remote directory
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key pathstring Yes Remote directory path to list detailedboolean No Include file details (size, permissions, modified date) recursiveboolean No List subdirectories recursively (default: false)
Parameter Type Description entriesarray Array of file and directory entries ↳ name string File or directory name ↳ type string Entry type (file, directory, symlink) ↳ size number File size in bytes ↳ permissions string File permissions ↳ modified string Last modified timestamp totalFilesnumber Total number of files totalDirectoriesnumber Total number of directories messagestring Operation status message
Check if a file or directory exists on the remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key pathstring Yes Remote file or directory path to check typestring No Expected type: file, directory, or any (default: any)
Parameter Type Description existsboolean Whether the path exists typestring Type of path (file, directory, symlink, not_found) sizenumber File size if it is a file permissionsstring File permissions (e.g., 0755) modifiedstring Last modified timestamp messagestring Operation status message
Create a directory on the remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key pathstring Yes Directory path to create recursiveboolean No Create parent directories if they do not exist (default: true) permissionsstring No Directory permissions (default: 0755)
Parameter Type Description createdboolean Whether the directory was created successfully remotePathstring Created directory path alreadyExistsboolean Whether the directory already existed messagestring Operation status message
Delete a file or directory from the remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key pathstring Yes Path to delete recursiveboolean No Recursively delete directories (default: false) forceboolean No Force deletion without confirmation (default: false)
Parameter Type Description deletedboolean Whether the path was deleted successfully remotePathstring Deleted path messagestring Operation status message
Move or rename a file or directory on the remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key sourcePathstring Yes Current path of the file or directory destinationPathstring Yes New path for the file or directory overwriteboolean No Overwrite destination if it exists (default: false)
Parameter Type Description movedboolean Whether the operation was successful sourcePathstring Original path destinationPathstring New path messagestring Operation status message
Retrieve system information from the remote SSH server
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key
Parameter Type Description hostnamestring Server hostname osstring Operating system (e.g., Linux, Darwin) architecturestring CPU architecture (e.g., x64, arm64) uptimenumber System uptime in seconds memoryjson Memory information (total, free, used) diskSpacejson Disk space information (total, free, used) messagestring Operation status message
Read the contents of a remote file
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key pathstring Yes Remote file path to read encodingstring No File encoding (default: utf-8) maxSizenumber No Maximum file size to read in MB (default: 10)
Parameter Type Description contentstring File content as string sizenumber File size in bytes linesnumber Number of lines in file remotePathstring Remote file path messagestring Operation status message
Write or append content to a remote file
Inputs and outputsParameter Type Required Description hoststring Yes SSH server hostname or IP address portnumber Yes SSH server port (default: 22) usernamestring Yes SSH username passwordstring No Password for authentication (if not using private key) privateKeystring No Private key for authentication (OpenSSH format) passphrasestring No Passphrase for encrypted private key pathstring Yes Remote file path to write to contentstring Yes Content to write to the file modestring No Write mode: overwrite, append, or create (default: overwrite) permissionsstring No File permissions (e.g., 0644)
Parameter Type Description writtenboolean Whether the file was written successfully remotePathstring File path sizenumber Final file size in bytes messagestring Operation status message