ftp_connect
Connect to an FTP, FTPS, or SFTP server using credentials, a private key, or a saved site. This establishes a session for file operations like upload, download, and directory management.
Instructions
Connect to an FTP/FTPS/SFTP server using credentials or a saved site name
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | Server hostname or IP | |
| name | Yes | Connection name (identifier for this session) | |
| port | No | Server port (default: 21 for FTP, 990 for FTPS, 22 for SFTP) | |
| site | No | Saved site name from site manager (overrides other params) | |
| password | No | Password | |
| protocol | No | Protocol to use | |
| username | No | Username | |
| passphrase | No | Private key passphrase | |
| remotePath | No | Initial remote directory | |
| privateKeyPath | No | Path to SSH private key (SFTP) | |
| rejectUnauthorized | No | Verify TLS certificate (FTPS, default: true) |