remote_file_download
Download a file from a remote server to your local machine via SSH. Retrieve logs, configs, or any remote file for analysis.
Instructions
Download a file from the remote server to local machine.
Works with both SSH2 and child process sessions:
SSH2: Uses SFTP for efficient binary transfer
Child process: Uses base64 encoding through the shell
Example: Download logs or config files from a server.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Destination path on local machine (supports ~ expansion) | |
| sessionId | No | Session ID (optional, defaults to active session) | |
| remotePath | Yes | Path to file on remote server |