ssh_upload_file
Upload a local file to any remote SSH host via SFTP. Automatically creates missing remote directories for hassle-free deployment of configs, binaries, or large files.
Instructions
Upload a local file to a remote SSH host via SFTP.
The remote parent directory is created automatically if it doesn't exist. Use this to deploy configs, binaries, or any large file.
Args: alias: Target host alias. local_path: Absolute path to the local file to upload, in the format native to the machine running the MCP server (e.g. 'C:\Users\me\file.txt' on Windows, '/home/me/file.txt' on Linux/macOS). Call ssh_get_local_info first if you are unsure which format to use. remote_path: Absolute POSIX destination path on the remote host (e.g. '/home/user/file.txt').
Returns: Success message with byte count, or an error description.
Examples: - Deploy an app binary: local_path='/dist/myapp', remote_path='/opt/myapp/bin/myapp' - Upload a TLS cert: local_path='/tmp/server.crt', remote_path='/etc/ssl/certs/server.crt'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alias | Yes | ||
| local_path | Yes | ||
| remote_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |