ssh_transfer
Transfer files between your local machine and remote SSH hosts. Upload or download files to or from multiple hosts in a single operation.
Instructions
Transfer files between local machine and remote SSH hosts. Supports upload to multiple hosts or download from multiple hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | SSH port for direct connection (default: 22) | |
| hosts | Yes | List of host names or IP addresses to transfer files to/from | |
| password | No | SSH password for direct connection (use with caution) | |
| username | No | SSH username for direct connection (overrides config) | |
| direction | Yes | Transfer direction: upload or download | |
| localPath | Yes | Local file path. For multi-host downloads, use {host} placeholder (e.g., ./logs/{host}.log) or files will be auto-suffixed with hostname | |
| remotePath | Yes | Remote file path on the SSH host | |
| privateKeyPath | No | Path to SSH private key file for direct connection |