sftp_download
Fetches a file from a remote host to this Windows host over SFTP, using in-process ssh2 to avoid external scp or WSL dependencies.
Instructions
Download a file from a remote host to this Windows host over SFTP, in-process (ssh2 — no scp.exe, no WSL, headless).
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 | Destination path on this Windows host. | |
| timeoutMs | No | Hard timeout in ms (default 120000). | |
| passphrase | No | Passphrase for the private key, if any. | |
| remotePath | Yes | Source path on the remote host. | |
| privateKeyPath | No | Path to a private key file on this Windows host. |