Operate SSH-reachable hosts with rhost: execute recoverable work, inspect or edit files, and drive persistent terminals through available MCP tools or the installed CLI. Use when work belongs remotely and OpenSSH should own authentication and host keys.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Rhost?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/starfield17-rhost)
---
name: rhost
description: "Operate SSH-reachable hosts with rhost: execute recoverable work, inspect or edit files, and drive persistent terminals through available MCP tools or the installed CLI. Use when work belongs remotely and OpenSSH should own authentication and host keys."
---
# rhost
Use the user's SSH target: alias, `user@example-host`, or hostname. Discovery
lists local OpenSSH aliases; it is best-effort, not a host inventory.
Choose the operation by its guarantees, then use its available interface.
Use the eight core MCP tools or the CLI. CLI foreground exec supports stdin and
streaming. Use the tool names and schemas advertised by the connected server.
Inspect recovery evidence before retrying through either interface.
## Read only the guide needed now
| Task | Operation and reference |
| --- | --- |
| Ordinary command, script, stdin or streaming output | `rhost exec`; [CLI.md](references/CLI.md#foreground-execution) |
| Build/test that must survive CLI/MCP exit | Run start/wait/watch/signal; [RUNS.md](references/RUNS.md) |
| Publish working trees, run across hosts, or pull results | Push/matrix/pull; [CLI.md](references/CLI.md#device-mode) |
| Read/search files, CAS edit, named changeset recovery | [FILES.md](references/FILES.md) |
| Stateful shell, REPL or debugger | Session create/send/read; [SESSIONS.md](references/SESSIONS.md) |
| Connect MCP or send one JSON request | [MCP.md](references/MCP.md) |
| Read a host card, diagnose SSH, copy/sync or forward ports | Relevant section of [CLI.md](references/CLI.md) |
| Helper cache/build policy or preparation failure | [NATIVE.md](references/NATIVE.md#preparation-policies) |
Start with `rhost brief <host>` or `rhost_brief` for boot-keyed host facts,
live activity and remote instructions. The caller ledger fills in omitted Run
identity, file hashes and cursors when supported. Local policy gates requests
before submission. See [SAFETY.md](references/SAFETY.md#local-policy).
## Keep the evidence
- Use CLI `--json` for hashes and programmatic decisions. MCP returns the same
schema-v8 envelope in `structuredContent`. Branch on `error.code` and the
operation's completion/mutation evidence plus `error.recovery`, never English
messages alone.
- Replacing or patching a file requires an observed hash. Re-read and merge on
conflict; a changeset has no global atomic visibility or automatic rollback.
- Run wait/cancellation ends observation. Session exec timeout may interrupt its
pane. Before retrying an uncertain mutation or input, read the relevant section
of [RECOVERY.md](references/RECOVERY.md); changing interfaces adds no retry safety.
- Output cursors count source bytes. Advance with the returned cursor and inspect
truncation/gaps; rendered text length is not an offset.
- OpenSSH owns credentials/trust. For destructive sync, exposure, sudo or account
changes, read [SAFETY.md](references/SAFETY.md). Manage project/Git state yourself.
If behavior differs from these guides, check `rhost version --json` and
`rhost <command> --help`, or the connected MCP tool list. A symlinked skill can
drift from the installed binary. Do not preload every reference.