sftp_upload
Upload a local file to a remote host over SFTP using an existing SSH connection.
Instructions
[SSH Operations] Upload file to remote host via SFTP
Example usage:
{
"connectionId": "raspberry-pi",
"localPath": "C:\\data\\file.txt",
"remotePath": "/home/pi/file.txt"
}Security: Validates local file exists. Remote path must be absolute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| localPath | Yes | Absolute path to local file to upload | |
| remotePath | Yes | Absolute path on remote host where file will be uploaded | |
| connectionId | Yes | ID of the SSH connection to use |