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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"direction": "<direction>",
"hosts": "<hosts>",
"localPath": "<localPath>",
"remotePath": "<remotePath>"
},
"name": "ssh_transfer"
}
}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 |