AACFlow

SSH

Connect to remote servers via SSH

Usage Instructions

Execute commands, transfer files, and manage remote servers via SSH. Supports password and private key authentication for secure server access.

Tools

ssh_execute_command

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
commandstringYesNo description
workingDirectorystringNoNo description

Output

ParameterTypeDescription
stdoutstringStandard output from command
stderrstringStandard error output
exitCodenumberCommand exit code
successbooleanWhether command succeeded (exit code 0)
messagestringOperation status message

ssh_execute_script

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
scriptstringYesNo description
interpreterstringNoNo description
workingDirectorystringNoNo description

Output

ParameterTypeDescription
stdoutstringStandard output from script
stderrstringStandard error output
exitCodenumberScript exit code
successbooleanWhether script succeeded (exit code 0)
scriptPathstringTemporary path where script was uploaded
messagestringOperation status message

ssh_check_command_exists

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
commandNamestringYesNo description

Output

ParameterTypeDescription
commandExistsbooleanWhether the command exists
commandPathstringFull path to the command (if found)
versionstringCommand version output (if applicable)
messagestringOperation status message

ssh_upload_file

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
fileContentstringYesNo description
fileNamestringYesNo description
remotePathstringYesNo description
permissionsstringNoNo description
overwritebooleanNoNo description

Output

ParameterTypeDescription
uploadedbooleanWhether the file was uploaded successfully
remotePathstringFinal path on the remote server
sizenumberFile size in bytes
messagestringOperation status message

ssh_download_file

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
remotePathstringYesNo description

Output

ParameterTypeDescription
downloadedbooleanWhether the file was downloaded successfully
filefileDownloaded file stored in execution files
fileContentstringFile content (base64 encoded for binary files)
fileNamestringName of the downloaded file
remotePathstringSource path on the remote server
sizenumberFile size in bytes
messagestringOperation status message

ssh_list_directory

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
pathstringYesNo description
detailedbooleanNoNo description
recursivebooleanNoNo description

Output

ParameterTypeDescription
entriesarrayArray of file and directory entries
namestringFile or directory name
typestringEntry type (file, directory, symlink)
sizenumberFile size in bytes
permissionsstringFile permissions
modifiedstringLast modified timestamp
totalFilesnumberTotal number of files
totalDirectoriesnumberTotal number of directories
messagestringOperation status message

ssh_check_file_exists

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
pathstringYesNo description
typestringNoNo description

Output

ParameterTypeDescription
existsbooleanWhether the path exists
typestringType of path (file, directory, symlink, not_found)
sizenumberFile size if it is a file
permissionsstringFile permissions (e.g., 0755)
modifiedstringLast modified timestamp
messagestringOperation status message

ssh_create_directory

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
pathstringYesNo description
recursivebooleanNoNo description
permissionsstringNoNo description

Output

ParameterTypeDescription
createdbooleanWhether the directory was created successfully
remotePathstringCreated directory path
alreadyExistsbooleanWhether the directory already existed
messagestringOperation status message

ssh_delete_file

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
pathstringYesNo description
recursivebooleanNoNo description
forcebooleanNoNo description

Output

ParameterTypeDescription
deletedbooleanWhether the path was deleted successfully
remotePathstringDeleted path
messagestringOperation status message

ssh_move_rename

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
sourcePathstringYesNo description
destinationPathstringYesNo description
overwritebooleanNoNo description

Output

ParameterTypeDescription
movedbooleanWhether the operation was successful
sourcePathstringOriginal path
destinationPathstringNew path
messagestringOperation status message

ssh_get_system_info

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description

Output

ParameterTypeDescription
hostnamestringServer hostname
osstringOperating system (e.g., Linux, Darwin)
architecturestringCPU architecture (e.g., x64, arm64)
uptimenumberSystem uptime in seconds
memoryjsonMemory information (total, free, used)
diskSpacejsonDisk space information (total, free, used)
messagestringOperation status message

ssh_read_file_content

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
pathstringYesNo description
encodingstringNoNo description
maxSizenumberNoNo description

Output

ParameterTypeDescription
contentstringFile content as string
sizenumberFile size in bytes
linesnumberNumber of lines in file
remotePathstringRemote file path
messagestringOperation status message

ssh_write_file_content

Input

ParameterTypeRequiredDescription
hoststringYesNo description
portnumberYesNo description
usernamestringYesNo description
passwordstringNoNo description
privateKeystringNoNo description
passphrasestringNoNo description
pathstringYesNo description
contentstringYesNo description
modestringNoNo description
permissionsstringNoNo description

Output

ParameterTypeDescription
writtenbooleanWhether the file was written successfully
remotePathstringFile path
sizenumberFinal file size in bytes
messagestringOperation status message

On this page

Start building today
Trusted by over 100,000 builders.
The SaaS platform to build AI agents and run your agentic workforce.
Get started