scp
Securely copy files to or from a remote host using SFTP, specifying local and remote paths, authentication with username and optional private key.
Instructions
Copy files to or from a remote host using SFTP (SCP-like)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Target host | |
| user | Yes | Username | |
| direction | Yes | Direction: upload (local to remote) or download (remote to local) | |
| localPath | Yes | Local file path (source for upload, destination for download) | |
| remotePath | Yes | Remote file path (destination for upload, source for download) | |
| privateKey | No | Private key for authentication (PEM format, optional, or path to key file) |