ssh_write_file
Write content to remote files via SFTP. Creates or overwrites files on SSH hosts with automatic authentication for secure file operations.
Instructions
Write content to a file on a remote host via SFTP. Creates or overwrites the file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | SSH hostname or IP address | |
| port | No | SSH port (default: 22) | |
| username | No | SSH username (default: current user) | |
| privateKeyPath | No | Path to SSH private key | |
| password | No | SSH password (prefer keys) | |
| path | Yes | Absolute path to the remote file | |
| content | Yes | File content to write |