manage_remote_hosts
Add, list, test, or remove SSH hosts that run security tools on remote Linux machines over SSH.
Instructions
Add, list, test, or remove the SSH hosts that run_tool can target remotely.
Manages the remote-host registry that lets run_tool (and check_installed) run a tool on a remote Kali/Linux box over SSH instead of locally, so the tool only has to be installed on the remote. The action selects the operation: "list" shows every configured host; "add" registers or updates a host (needs name and hostname, plus optional user, port, ssh_key, and a tool_allowlist that restricts which tools may run there); "remove" deletes a host by name; "test" opens an SSH connection to confirm the host is reachable.
Connections use StrictHostKeyChecking=accept-new, so the key presented on the first connection is pinned in ~/.ssh/known_hosts and any later change is rejected. Verify that first fingerprint out-of-band for a host you do not control, or add the key to known_hosts before "test".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Host name (required for add/remove/test). | |
| port | No | SSH port (default 22). | |
| user | No | SSH username (default "kali"). | kali |
| action | Yes | Operation to perform: "list", "add", "remove", or "test". | |
| ssh_key | No | Path to SSH private key (e.g. "~/.ssh/id_kali"). | |
| hostname | No | IP address or hostname of the remote machine (required for add). | |
| description | No | Human-readable description of the host. | |
| tool_allowlist | No | Comma-separated list of allowed tool names (e.g. "nmap,gobuster,sqlmap"). None means all tools allowed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||