ssh_download
Download any file from a remote Linux server to your local machine over SFTP, preserving binary data exactly.
Instructions
Download a file from the remote server to the local machine (binary-safe).
Transfers over SFTP (the SSH file-transfer protocol), so it streams and preserves any file type exactly, including binary (.db, images, archives). To send a file the other way, use ssh_upload.
Args: remote_path: Path to the file on the remote server. local_dir: Local directory to save to. Defaults to ~/Downloads. host: SSH host alias from config. Uses default if omitted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remote_path | Yes | ||
| local_dir | No | ||
| host | No |