
Agentic SSH
io.github.sandbanks由 GitHub 帳號 sandbanks 發布v0.6.1更新於 Nov 6, 2026
High-performance (Rust), token-efficient, and asynchronous SSH orchestrations for AI agents.
發布方自己的服務:agentic.no
概覽
以 Rust 打造的 SSH 連線池與 MCP 伺服器,讓 AI 助理以白名單方式、低 token 消耗地遠端執行指令。
- 可以做什麼
- 探索 SSH 設定中已授權的主機別名與多主機群組
- 在多台主機上並行執行指令,支援同步或背景分離模式
- 檢視遠端系統狀態:CPU、記憶體、磁碟、監聽埠、程序與網路連線
- 讀取日誌:系統日誌、Docker 容器日誌、syslog 與 journalctl 比對
- 檢查服務與容器:systemd 狀態、Docker 常駐程式健康、待更新套件
- 維護主機:拉取遠端 Git 儲存庫、尋找大型檔案、列出 cron 工作
- 適用情境
- 適合需要讓助理透過 SSH 排查、稽核或維運多台遠端機器的情境,並希望有嚴格的主機白名單與精簡的結構化輸出,而不是原始終端機大量輸出。適用於自架實驗環境、開發伺服器與叢集。
- 執行需求
- 以本機程序執行,可透過 Homebrew、cargo-binstall 或 Nix 安裝;使用既有的 SSH 設定與金鑰,可選設定檔用來設定 allow_hosts、ignore_hosts 與主機群組。遠端目標需提供 POSIX 相容的 sh 或 bash,可選用 setsid。未宣告任何環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Agentic SSH,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[Release] [Sponsor] [MCP Toplist] [agentic_ssh MCP server] [Crates.io] [Homebrew]
agentic_ssh 🛰️🛡️
Stop your AI agent from nosing around your SSH connections without permission.
A secure-by-default SSH connection pool & MCP server for AI coding assistants (Claude Code, Cursor, Gemini, Antigravity, Copilot, Cline).
agentic_ssh gives your AI assistant fast, token-efficient, and asynchronous SSH access to your homelab, dev servers, and clusters—with strict zero-trust host guardrails so it can never touch unauthorized infrastructure.
[AI Agent Multi-Host Interrogation & Security Guardrail]
📊 Token & Quota Impact: Raw SSH vs. agentic_ssh
💡 Why I Built This
I built agentic_ssh after watching my AI coding agent do remote server triage across my own fleet of machines.
I asked it to investigate an anomaly. I sat there watching as it opened the same SSH connection time after time to talk to the same remote server, checking one small thing at a time. When querying multiple nodes, it would ask the exact same question of each server individually, running fresh TCP/SSH handshakes for every single command.
Worse, every single docker logs or system check dumped hundreds—sometimes thousands—of tokens of raw terminal noise and ANSI escape codes straight into the context window, chewing through my API budget in minutes. And whenever an idle SSH connection dropped mid-query, the agent would lose its place and spin in retry loops.
I realised that could be dramatically streamlined with a dedicated, connection-pooled, security-first MCP server.
🛑 Why Giving AI Agents Raw SSH Is a Bad Idea
If you've ever let an autonomous agent run raw terminal ssh, you're exposing your machines to huge risks:
- 🚨 Unrestricted Fleet Access ("Nosing Around"): Standard agent bash tools have full, unchecked access to your
~/.ssh/config. If you ask an agent to inspect a local dev box, nothing stops it from querying your production database, jumping through client bastions, or running rogue commands where it shouldn't. - 💥 The Context Avalanche: The agent runs
apt upgradeorcargo build, and 15,000 lines of compiler noise dump straight into your context window—wiping out memory, blowing up rate limits, and wasting money. - 👻 Silent Death by Dropout: Cloud NATs and Tailscale love to silently drop idle SSH sockets during a 10-minute compile. The agent hangs forever waiting for output that will never arrive.
- 😵💫 Nested Escaping Hell: Asking an LLM to quote bash inside an SSH string inside an MCP JSON payload (
ssh host "bash -c \"echo 'hello'\"") invariably leads to broken quotes and syntax errors.
🪄 How agentic_ssh Fixes This
⚡️ Quick Start (30 Seconds)
1. Install
2. Auto-Register with Your AI Agents
One command detects your installed AI tools and registers the MCP server automatically:
(Supports Claude Code / Desktop, Cursor, Gemini, Antigravity, Copilot, Zed, Cline, and Roo-Code).
3. Verify Health
🤖 Prompt Recipes: What Your AI Agent Can Do
Once installed, just talk to your agent naturally. Here are real-world prompts you can copy & paste:
🔍 1. Cluster Health & Resource Audit
"Check the CPU load, RAM usage, and available disk space across stan, cartman, and aruba. Report any bottlenecks."
⚡️ Agent calls
get_system_statsconcurrently across all 3 nodes and gives you a structured comparison table in 2 seconds.
🛡️ 2. Security & Port Exposure Check
"Inspect all active listening TCP and UDP ports on our staging server. Flag anything open on 0.0.0.0 that shouldn't be."
⚡️ Agent calls
list_portswith process attribution (PID + binary name) for instant auditing.
🐳 3. Container Status & Error Log Tailing
"Check if any Docker containers crashed on cartman, and tail the last 50 lines of the auth-service logs."
⚡️ Agent calls
check_docker_statusandtail_container_logswithout flooding your context window.
⏳ 4. Detached Background Jobs
"Deploy the latest git commit on stan in the background and notify me when it finishes."
⚡️ Agent runs
run_commandwithbackground: true, frees up your chat immediately, and tracks the output in a local session log.
🖥️ CLI Superpowers for Humans (Built-in Terminal Tools)
agentic_ssh isn't just an MCP server for AI—it includes powerful CLI tools for human developers too:
💡 Tip: Add
alias ash="agentic_ssh"to your~/.zshrcor~/.bashrcto save keystrokes!
agentic_ssh watch: Multi-Host Live Streaming TUI
Watch commands run concurrently across multiple servers with live streaming panes and post-run log inspection:
[Multi-Host Command Watcher TUI]
agentic_ssh json: Instant Multi-Host Scripting
Call any built-in MCP diagnostic tool directly from your terminal and get clean, parseable JSON:
agentic_ssh tui: Live Connection Pool Dashboard
Inspect active SSH sockets, heartbeat metrics, connection lifetimes, and live running commands (with remote PID/PGID and timeout countdowns) inline under each host:
🧰 Built-in Tool Catalog
⚙️ Configuration (~/.config/agentic_ssh/config.toml)
You can define host groups and security boundaries in an optional configuration file:
Remote Shell Requirements & Timeout Process Cleanup
agentic_ssh tracks every active remote command in an in-memory registry and automatically kills timed-out commands (and their spawned child processes) using their remote Process Group ID (PGID).
- POSIX Shell Requirement: Remote targets are assumed to provide a POSIX-compliant
shorbash(and optionallysetsidfor isolated process groups). - Graceful Fallback: If a target uses a non-POSIX login shell where the PID sentinel cannot be detected,
agentic_sshlogs a warning and falls back to best-effort channel closure without failing the command.
🤝 Acknowledgments
- Standing on the shoulders of giants:
- Russh: High-performance pure Rust SSH client.
- Ratatui: Gorgeous terminal user interfaces.
- Enzo: MCP installer inspiration from
tokensave.
💖 Sponsoring Sandbanks
agentic_ssh is built and maintained as independent, sovereign open-source software.
If agentic_ssh saves your token budget, secures your infrastructure, or makes your AI pair-programming workflow faster:
👉 Sponsor @sandbanks on GitHub Sponsors
- Sponsoring unlocks the GitHub Sponsor badge, access to the private
sandbanks/vipdiscussions and early RFCs, and priority issue triage.
📄 License
Dual-licensed under MIT and Apache 2.0.
MCP Server Identifier: mcp-name: io.github.sandbanks/agentic_ssh
來源:README.md,提交 5394b02
工具
0版本歷史
4- v0.6.1最新Nov 6, 2026
- v0.6.0Oct 20, 2026
- v0.5.4Oct 11, 2026
- v0.5.3Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Agentic 整合
agentic.no
no.agentic官方發布者
一個遠端 MCP 端點,協助助理依模型尋找 AI 推論的 GPU 賣家,並依價格由低到高排序,透過 x402 按次付費。
Agentic Engineering Periodic System
academy.ase官方發布者
使用編碼代理建立軟體的實踐,每項實踐都附帶一個可在你的程式碼庫中檢查的測試。AI 翻譯
Agentic RL: Credit Assignment and CLI Agents
space.hf.hoyant-su-agentic-rl官方發布者
讓助理依監督方式、critic 與任務設定篩選代理強化學習方法,並取得來源連結與 BibTeX。

Agentic Video
由 GitHub 帳號 tlq5l 發布
本機 stdio MCP 伺服器,讓只能讀文字與圖片的助理檢查影片檔:聯絡表、轉錄、剪接點、響度與影音同步檢查。

Agentic Os
由 GitHub 帳號 kinnister 發布
唯讀、不執行任何操作的 MCP 伺服器,向助理提供 agentic-os 的治理、SDLC 與品質工程方法論。