ssh_copy_file
Copy files between local and remote servers or between remote servers using SSH connections. Specify source and target paths with connection IDs to transfer files securely.
Instructions
Copy files between local and remote servers or between remote servers
Input Schema
Name | Required | Description | Default |
---|---|---|---|
createDirectories | No | Create target directories if they don't exist | |
sourceConnectionId | Yes | Source SSH connection ID (use "local" for local files) | |
sourcePath | Yes | Source file path | |
targetConnectionId | Yes | Target SSH connection ID (use "local" for local files) | |
targetPath | Yes | Target file path |
Input Schema (JSON Schema)
{
"properties": {
"createDirectories": {
"default": true,
"description": "Create target directories if they don't exist",
"type": "boolean"
},
"sourceConnectionId": {
"description": "Source SSH connection ID (use \"local\" for local files)",
"type": "string"
},
"sourcePath": {
"description": "Source file path",
"type": "string"
},
"targetConnectionId": {
"description": "Target SSH connection ID (use \"local\" for local files)",
"type": "string"
},
"targetPath": {
"description": "Target file path",
"type": "string"
}
},
"required": [
"sourceConnectionId",
"sourcePath",
"targetConnectionId",
"targetPath"
],
"type": "object"
}