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