remote_host_add
MCP tools › Remote, rooms and agents
Add a host to Ferris IDEA's own SSH host list (an OpenSSH config in the user's settings folder; ~/.ssh/config is never written). Values are checked strictly; the identity file is referenced by path, never copied. No password is kept; unknown host keys are refused when connecting. Dry run unless dry_run false, which needs the settings and ssh rights and is logged.
| Capability | remote.remote_host_add |
|---|---|
| Area | Remote, rooms and agents |
| Access | changes settings |
| Reaches | — |
| Rights | settings, ssh |
| Dry run | dry_run, on unless the call turns it off |
Arguments
| Argument | Type | Description |
|---|---|---|
aliasrequired | string | The alias to connect with: 1–64 letters, digits, ., _, -, starting with a letter or
digit; not a host of either list yet. |
hostnamerequired | string | The host name or address (letters, digits, ., -, :). |
port | integer | The port (default 22).minimum 0 · maximum 65535 |
user | string | The login user (default: the local one). |
identity_file | string | The private key file: an absolute path or ~/…; referred to by path, never copied.
Without it the user's keys and agent are used. |
dry_run | boolean | Only check the entry and say where it would go (default true). |
Call it from a shell
ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.
ferris-idea call ~/my-project remote_host_add '{"alias":"<string>","hostname":"<string>"}'Input schema as JSON
{ "type": "object", "required": [ "alias", "hostname" ], "properties": { "alias": { "description": "The alias to connect with: 1–64 letters, digits, `.`, `_`, `-`, starting with a letter or\ndigit; not a host of either list yet.", "type": "string" }, "hostname": { "description": "The host name or address (letters, digits, `.`, `-`, `:`).", "type": "string" }, "port": { "description": "The port (default 22).", "type": [ "integer", "null" ], "maximum": 65535, "minimum": 0 }, "user": { "description": "The login user (default: the local one).", "type": [ "string", "null" ] }, "identity_file": { "description": "The private key file: an absolute path or `~/…`; referred to by path, never copied.\nWithout it the user's keys and agent are used.", "type": [ "string", "null" ] }, "dry_run": { "description": "Only check the entry and say where it would go (default true).", "type": [ "boolean", "null" ] } }}