remote_ssh_targets
Manage SSH targets by listing, adding, updating, or removing them and connecting, disconnecting, or checking ControlMaster sessions.
Instructions
List/add/update/remove SSH targets or connect/disconnect/check a ControlMaster. add/update verify the remote root and may open a terminal for authentication. Changes apply to the next call. No passwords are accepted or stored.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ssh | No | SSH alias or user@host; host:port and [IPv6]:port are accepted. Uses ~/.ssh/config. | |
| name | No | Unique target name; defaults to the SSH destination. | |
| port | No | SSH port; null clears an override on update. | |
| root | No | Default remote working directory, not a filesystem sandbox. | |
| action | Yes | ||
| create | No | Create the remote root if missing. Default false. | |
| target | No | Existing target name for update/remove/connect/disconnect/status. | |
| controlPersist | No | Connection reuse in seconds; default 43200. 0/null disables reuse and requires noninteractive key/agent authentication. |