sftp_upload
Upload a local file to a remote host over SFTP in-process, without external dependencies like scp.exe or WSL. Use it to deploy scripts or configuration files to Linux hosts.
Instructions
Upload a local file to a remote host over SFTP, in-process (ssh2 — no scp.exe, no WSL, headless). Use to deploy scripts/configs to Linux hosts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Remote host or IP. | |
| port | No | SSH port (default 22). | |
| password | No | Password auth (used if no key). | |
| username | Yes | SSH username. | |
| localPath | Yes | Local file path on this Windows host. | |
| timeoutMs | No | Hard timeout in ms (default 120000). | |
| passphrase | No | Passphrase for the private key, if any. | |
| remotePath | Yes | Destination path on the remote host. | |
| privateKeyPath | No | Path to a private key file on this Windows host. |