Provides SFTP connection management and file operations for external storage integration with NocoBase. Current stable version is 1.0.13. This plugin acts as a storage provider backend for the NocoBase external storage manager, enabling encrypted file transfers via SSH File Transfer Protocol. It is specifically designed for NocoBase v2.x and must be used alongside @nocobase/plugin-file-manager. Distinguishes itself with easy integration, support for both password and private key authentication, and seamless file browsing/uploading within the NocoBase admin UI.
npm install plugin-sftp-private-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Registers an SFTP storage provider with the NocoBase file manager using environment variables for configuration.
Upgrade NocoBase to version 2.x or later.
Verify that your server supports SFTP on the specified port (usually 22).
Use a private key instead of a password by providing the `privateKey` option.
Ensure '@nocobase/plugin-file-manager' is installed and activated in your NocoBase instance.
Run `npm install @nocobase/plugin-sftp-private-storage` or `yarn add @nocobase/plugin-sftp-private-storage`.
Ensure you use named import: `import { SFTPStorageProvider } from '@nocobase/plugin-sftp-private-storage';`.Check that the `host` configuration matches a reachable SFTP server address.
Verify the username and password/private key. If using a private key, ensure it has correct permissions (e.g., chmod 600).