ssh_write_file
Write UTF-8 text files over SFTP on a remote Linux host, using atomic replacement and optional backup to protect existing content.
Instructions
Write UTF-8 text through SFTP on the selected server using a temporary file and atomic rename. Existing files are backed up by default. Replacing symlinks is refused. SSH credentials are private server-side configuration. Never ask the user for a password. Use ssh_list_servers when the user has not supplied an exact configured alias.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| server | Yes | Exact configured server alias returned by ssh_list_servers. | |
| content | Yes | ||
| createBackup | No |