remote-ssh-mcpBLOCK
Persistent, stateful remote SSH sessions for AI agents via MCP. Keep cwd, env & shell state across commands — powered by your local OpenSSH. Works with Claude, Cursor & any MCP host.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Remote SSH MCP
Persistent, stateful remote Bash sessions for AI agents via the Model Context Protocol
Why · Features · How it works · Tools · Quick start · Config · Security · 简体中文
671caeecf41dOBSERVED · 2026-10-11Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add remote-ssh-mcp -- npx -y @zyluo/[email protected]
Exposed tools (7)
6 read · 1 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
ssh_close | read | |
ssh_hosts | read | |
ssh_interrupt | read | |
ssh_list | read | |
ssh_open | read | |
ssh_peek | read | |
ssh_run | write |
Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (3 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (12)
"remote-ssh-mcp: no exact SSH Host aliases discovered; add Host aliases to ~/.ssh/config or set SSH_MCP_ALLOWED_HOSTS",
"List allowed OpenSSH Host aliases discovered from the local ssh_config (and explicit allowlist). Returns only safe connection metadata: alias, hostname, user, port, proxy_jump. Never returns private
"OpenSSH client only. Private keys, IdentityFile paths, agent sockets, and ProxyCommand are never returned. Do not read ~/.ssh key files; call ssh_open with an alias instead.",
const token = "0123456789abcdef0123456789abcdef";
const token = "0123456789abcdef0123456789abcdef";
const token = "fedcba9876543210fedcba9876543210";
.star-history.sig
slim-payload.test.ts
" IdentityFile ~/.ssh/id_ed25519_prod",
" CertificateFile ~/.ssh/id_ed25519_prod-cert.pub",
@modelcontextprotocol/server, zod, @modelcontextprotocol/client, @types/node, tsx, typescript
- Agents should call `ssh_open` with a Host alias and **must not** read `~/.ssh` private keys from disk
Gates applied: no_behavioural_pass.
671caeecf41dfull audit observations/trust-audit/mcp-server/the-nine-nation__remote-ssh-mcp.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-11 | 671caeecf41d | BLOCK | D | 69 | first audit |
Questions
What is the remote-ssh-mcp MCP server?
Persistent, stateful remote SSH sessions for AI agents via MCP. Keep cwd, env & shell state across commands — powered by your local OpenSSH. Works with Claude, Cursor & any MCP host.
What tools does remote-ssh-mcp expose?
7 in total: 6 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is remote-ssh-mcp safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 3 critical or high issues in the source. Each one is listed on this page with the file and line it is on.
What credentials does remote-ssh-mcp need?
No credential environment variables were found in its source, so it appears to need none.
How does remote-ssh-mcp run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as @zyluo/remote-ssh-mcp at 0.2.2.
How current is this page?
The grade is for one exact copy of the source (671caeecf41d), read on 2026-10-11. The repository is watched and re-audited when it changes.