app icon
SFTP Client
0.0.1

Secure File Transfer Protocol (SFTP) client for remote file operations

stvlynn/sftp2705 installs

SFTP Plugin for Dify

Author: Steven Lynn
Version: 0.0.1
Type: tool

Description

SFTP (Secure File Transfer Protocol) plugin for Dify, allowing secure file operations on remote servers. The plugin provides file listing, downloading, uploading, and management capabilities.

Features

The plugin provides the following actions:

1. List Directory

Lists files and directories in a remote location via SFTP, showing details like file size, modification time, and file type.

2. Download File

Downloads a file from the remote server and returns it directly as a file attachment for easy access.

3. Upload File

Uploads files to the remote server using Dify's file variable system for direct file uploads.

4. Manage Files and Directories

Provides various file and directory management operations:

  • Create directory
  • Delete file/directory
  • Rename file/directory

Authentication

The plugin supports two authentication methods:

  • Password authentication: Using username and password
  • Private key authentication: Using username and private key (with optional passphrase)

Parameters

Common Parameters for All Tools

ParameterTypeRequiredDescription
hoststringYesHostname or IP address of the remote server
portnumberNoSSH port, default is 22
usernamestringYesUsername for authentication
auth_typeselectYesAuthentication type: password or key
passwordstringConditionalPassword for password authentication (required if auth_type is password)
private_keystringConditionalPrivate key content for key authentication (required if auth_type is key)
passphrasestringNoPassphrase for the private key (if the key is encrypted)

List Directory Parameters

ParameterTypeRequiredDescription
remote_pathstringYesDirectory path on the remote server to list

Download File Parameters

ParameterTypeRequiredDescription
remote_pathstringYesPath to the file on the remote server

Upload File Parameters

ParameterTypeRequiredDescription
remote_pathstringYesPath where to save the file on the remote server
filesfilesYesFile(s) to upload to the remote server

Manage Files Parameters

ParameterTypeRequiredDescription
actionselectYesAction to perform (rename, delete, create directory)
pathstringYesPath to file or directory on remote server
new_pathstringConditionalNew path for rename operation (required if action is rename)

Usage Examples

List Directory Example

Download File Example

Upload File Example

Manage Files Example

Security Considerations

  • Ensure you have permission to access the target server
  • Sensitive information such as private keys and passwords should be kept secure
  • Store sensitive credentials in the Dify Environment Variables section as secrets
  • Follow the principle of least privilege when accessing remote servers

License

MIT

Feedback and Issues

If you encounter any problems or have suggestions for improvements:

  1. Please open an issue in the plugin's GitHub repository

  2. Provide details about your problem, including error messages and steps to reproduce

  3. Do not submit issues to the main Dify repository for plugin-specific problems

CATEGORY
Tool
VERSION
0.0.1
stvlynn·04/17/2025 03:04 PM
REQUIREMENTS
Maximum memory
256MB