# Agentic SSH

Rust-powered SSH connection pool for AI agents. It restricts remote access with host whitelisting and trims terminal dumps down to compact JSON telemetry.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 5
- Author: sandbanks
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/sandbanks/agentic_ssh
- Updated: 2026-10-22
- HTML: https://affpapa.org/en/nevibecode/mcp/agentic-ssh

## What it does

Standard command-line SSH allows an assistant to inspect every machine declared in `~/.ssh/config`, risking mistakes on production hosts. This server relies on `russh` to maintain reusable sockets with 30-second keepalives. It catches command output and writes bulky streams directly into local files under `~/.agentic_ssh/sessions/` instead of flooding context memory.

Without a defined `allow_hosts` entry, all connection requests are rejected immediately. The tool also wraps shell parameters safely so the model never trips over nested quotation marks. Long tasks execute via detached threads whenever `background: true` is supplied, keeping the agent responsive during lengthy builds.

## Requirements
- Needs: a prebuilt binary from the repository releases

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- Restrict remote commands using an explicit `allow_hosts` list
- Collect CPU and memory metrics across remote machines simultaneously
- Audit listening network ports alongside corresponding process IDs
- Retrieve Docker container error logs without terminal noise
- Trigger detached compile jobs on remote nodes

## Example prompts
- Inspect CPU load and available memory across cartman and stan
- List all open listening ports on staging and show the running binaries
- Check Docker container health on aruba and fetch recent auth-service logs

## Similar
- [ssh-configuration](https://affpapa.org/en/nevibecode/skills/ssh-configuration.md) — skill · 451 installs
- [mcp-ssh-manager](https://affpapa.org/en/nevibecode/mcp/mcp-ssh-manager.md) — MCP server · ★ 525
- [SSH MCP Server](https://affpapa.org/en/nevibecode/mcp/hypnosis-ssh-mcp-server.md) — MCP server · ★ 6
- [ssh](https://affpapa.org/en/nevibecode/skills/dicklesworthstone-ssh.md) — skill · 703 installs
- [safe-ssh-mcp](https://affpapa.org/en/nevibecode/mcp/safe-ssh-mcp.md) — MCP server · ★ 8
- [SSH — policy-gated remote access](https://affpapa.org/en/nevibecode/mcp/ssh-policy-gated-remote-access.md) — MCP server · ★ 840

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
