rootpilot-ssh-diagnose

v0.1.2
io.github.Easton-OU/rootpilot-ssh-diagnose Checked 23 hours ago Published 4 months ago

Read-only SSH server diagnostics via a fixed 38-command whitelist; secrets redacted, no write path.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_hosts List configured hosts

List the hosts defined in your hosts.json, with an optional reachability probe (TCP + SSH banner). Returns names to use with the other tools.

ParameterTypeDescription
probebooleanalso test SSH reachability

get_whitelist List the read-only command whitelist

Return every command this server can run: key, purpose, shell template, and whether it needs a container argument. This is the complete set — nothing outside it can be executed.

collect Collect diagnostics by key

Run up to 8 whitelisted commands on a host and return their (redacted, truncated) output. Use get_whitelist to see valid keys. Keys outside the whitelist are rejected.

ParameterTypeDescription
host *stringhost name from list_hosts
keys *arraywhitelisted command keys
containerstringcontainer name, required by container-scoped keys

collect_base Collect the base overview

Shortcut: run the base group (docker_ps, df, df_inode, free, uptime, dmesg_oom, docker_daemon) — a cheap first look at a host.

ParameterTypeDescription
host *stringhost name from list_hosts

container_deep_dive Deep dive into one container

Shortcut: for one container, run docker_logs, docker_inspect (redacted), container_state and docker_stats.

ParameterTypeDescription
container *stringcontainer name
host *stringhost name from list_hosts