SFTP

Transfer files via SFTP (SSH File Transfer Protocol)

Configuration

Upload Files

Operation
Upload Files
SFTP Host*
sftp.example.com or 192.168.1.100
SFTP Port
22
Username*
sftp-user
Authentication Method
Select...
Password
••••••••
Private Key
plaintext
-----BEGIN OPENSSH PRIVATE KEY-----\n...
Passphrase
••••••••
Remote Path*
/home/user/uploads
Files to Upload
Select files to upload
File Reference
Reference file from previous block (e.g., {{block_name.file}})
Overwrite Existing Files
Enabled
File Permissions
0644
Upload Files (sftp_upload)

Upload files to a remote SFTP server

Input
ParameterTypeRequiredDescription
hoststringYesSFTP server hostname or IP address
portnumberYesSFTP server port (default: 22)
usernamestringYesSFTP username
passwordstringNoPassword for authentication (if not using private key)
privateKeystringNoPrivate key for authentication (OpenSSH format)
passphrasestringNoPassphrase for encrypted private key
remotePathstringYesDestination directory on the remote server
filesfile[]NoFiles to upload
fileContentstringNoDirect file content to upload (for text files)
fileNamestringNoFile name when using direct content
overwritebooleanNoWhether to overwrite existing files (default: true)
permissionsstringNoFile permissions (e.g., 0644)
Output
ParameterTypeDescription
successbooleanWhether the upload was successful
uploadedFilesjsonArray of uploaded file details (name, remotePath, size)

Create File

Operation
Create File
SFTP Host*
sftp.example.com or 192.168.1.100
SFTP Port
22
Username*
sftp-user
Authentication Method
Select...
Password
••••••••
Private Key
plaintext
-----BEGIN OPENSSH PRIVATE KEY-----\n...
Passphrase
••••••••
Remote Path*
/home/user/uploads
Overwrite Existing Files
Enabled
File Permissions
0644
File Name*
filename.txt
File Content*
plaintext
Text content to write to the file
Output
ParameterTypeDescription
successbooleanWhether the operation was successful
uploadedFilesjsonArray of uploaded file details
fileNamestringDownloaded file name
contentstringDownloaded file content
sizenumberFile size in bytes
entriesjsonDirectory listing entries
countnumberNumber of entries
deletedPathstringPath that was deleted
createdPathstringDirectory that was created
messagestringOperation status message
errorstringError message if operation failed

Download File

Operation
Download File
SFTP Host*
sftp.example.com or 192.168.1.100
SFTP Port
22
Username*
sftp-user
Authentication Method
Select...
Password
••••••••
Private Key
plaintext
-----BEGIN OPENSSH PRIVATE KEY-----\n...
Passphrase
••••••••
Remote Path*
/home/user/uploads
Output Encoding
Select...
Download File (sftp_download)

Download a file from a remote SFTP server

Input
ParameterTypeRequiredDescription
hoststringYesSFTP server hostname or IP address
portnumberYesSFTP server port (default: 22)
usernamestringYesSFTP username
passwordstringNoPassword for authentication (if not using private key)
privateKeystringNoPrivate key for authentication (OpenSSH format)
passphrasestringNoPassphrase for encrypted private key
remotePathstringYesPath to the file on the remote server
encodingstringNoOutput encoding: utf-8 for text, base64 for binary (default: utf-8)
Output
ParameterTypeDescription
successbooleanWhether the download was successful
fileNamestringName of the downloaded file
contentstringFile content (text or base64 encoded)
sizenumberFile size in bytes
encodingstringContent encoding (utf-8 or base64)

List Directory

Operation
List Directory
SFTP Host*
sftp.example.com or 192.168.1.100
SFTP Port
22
Username*
sftp-user
Authentication Method
Select...
Password
••••••••
Private Key
plaintext
-----BEGIN OPENSSH PRIVATE KEY-----\n...
Passphrase
••••••••
Remote Path*
/home/user/uploads
Show Detailed Info
Disabled
List Directory (sftp_list)

List files and directories on a remote SFTP server

Input
ParameterTypeRequiredDescription
hoststringYesSFTP server hostname or IP address
portnumberYesSFTP server port (default: 22)
usernamestringYesSFTP username
passwordstringNoPassword for authentication (if not using private key)
privateKeystringNoPrivate key for authentication (OpenSSH format)
passphrasestringNoPassphrase for encrypted private key
remotePathstringYesDirectory path on the remote server
detailedbooleanNoInclude detailed file information (size, permissions, modified date)
Output
ParameterTypeDescription
successbooleanWhether the operation was successful
pathstringDirectory path that was listed
entriesjsonArray of directory entries with name, type, size, permissions, modifiedAt
countnumberNumber of entries in the directory

Delete File/Directory

Operation
Delete File/Directory
SFTP Host*
sftp.example.com or 192.168.1.100
SFTP Port
22
Username*
sftp-user
Authentication Method
Select...
Password
••••••••
Private Key
plaintext
-----BEGIN OPENSSH PRIVATE KEY-----\n...
Passphrase
••••••••
Remote Path*
/home/user/uploads
Recursive Delete
Disabled
Delete File/Directory (sftp_delete)

Delete a file or directory on a remote SFTP server

Input
ParameterTypeRequiredDescription
hoststringYesSFTP server hostname or IP address
portnumberYesSFTP server port (default: 22)
usernamestringYesSFTP username
passwordstringNoPassword for authentication (if not using private key)
privateKeystringNoPrivate key for authentication (OpenSSH format)
passphrasestringNoPassphrase for encrypted private key
remotePathstringYesPath to the file or directory to delete
recursivebooleanNoDelete directories recursively
Output
ParameterTypeDescription
successbooleanWhether the deletion was successful
deletedPathstringPath that was deleted

Create Directory

Operation
Create Directory
SFTP Host*
sftp.example.com or 192.168.1.100
SFTP Port
22
Username*
sftp-user
Authentication Method
Select...
Password
••••••••
Private Key
plaintext
-----BEGIN OPENSSH PRIVATE KEY-----\n...
Passphrase
••••••••
Remote Path*
/home/user/uploads
Create Parent Directories
Enabled
Create Directory (sftp_mkdir)

Create a directory on a remote SFTP server

Input
ParameterTypeRequiredDescription
hoststringYesSFTP server hostname or IP address
portnumberYesSFTP server port (default: 22)
usernamestringYesSFTP username
passwordstringNoPassword for authentication (if not using private key)
privateKeystringNoPrivate key for authentication (OpenSSH format)
passphrasestringNoPassphrase for encrypted private key
remotePathstringYesPath for the new directory
recursivebooleanNoCreate parent directories if they do not exist
Output
ParameterTypeDescription
successbooleanWhether the directory was created successfully
createdPathstringPath of the created directory

Usage Instructions

Upload, download, list, and manage files on remote servers via SFTP. Supports both password and private key authentication for secure file transfers.

Notes

  • Category: tools
  • Type: sftp