ssh_create
Create a new remote file over SSH with specified content. Fails if the target path already exists or its parent directory is missing.
Instructions
Create a new remote file over SSH with the given content — the remote counterpart of the local file-creation tool. Fails if the path already exists (use ssh_edit to modify an existing file) or if the remote parent directory doesn't exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute (or login-directory-relative) remote path to create. Must not already exist. | |
| port | No | ||
| target | Yes | OpenSSH target such as host, alias, or user@host. | |
| content | Yes | Full content to write to the new file. | |
| timeout | No | Local timeout in seconds. | |
| identity_file | No | ||
| extra_ssh_args | No | Additional ssh(1) flags passed verbatim, e.g. ["-J", "jumphost"]. Prefer the dedicated port, identity_file, and strict_host_key_checking parameters. | |
| known_hosts_file | No | ||
| strict_host_key_checking | No | Boolean or one of yes, no, ask, accept-new, off. |