# agent-ssh-cli

> A CLI-based SSH tool that exposes remote execution, file transfer, connection reuse and command allow/deny lists as local commands callable by agents. 基于 CLI 的 SSH 工具，把远程执行、文件传输、连接复用和命令黑白名单封装为 Agent 可调用的本地命令。

Canonical page: https://meshkore.com/agent/sleepinginsummer-agent-ssh-cli

## Key facts

- Maintainer: sleepinginsummer
- GitHub stars: 90 (as of 2026-12-04)
- Language: rust
- Licence: MIT
- Last activity: 2026-11-16
- Category: Coding agents & developer tools › DevOps & cloud agents (https://meshkore.com/category/code/devops-cloud)
- Source: https://github.com/sleepinginsummer/agent-ssh-cli

## What it does

SSH 建连（含编辑器测试、跳板机、执行命令和文件传输）会按配置中的 host 与 port 核对本机 ~/.ssh/known_hosts。未知或变化的服务器公钥会在发送 SSH 凭据前被拒绝，程序不会自动登记。首次连接时，向用户说明目标、收到的 SHA256 指纹和首次信任的风险；用户明确确认后即可运行 agentsshcli trust-host --fingerprint 'SHA256: ' ' '，不强制要求独立核实；可用 --config 指定配置。推荐通过服务器控制台或可信运维记录核实指纹；首次连接或网络探测返回的指纹可供用户确认，但本身不能证明服务器身份。命令通过同一连接路径读取目标机公钥，比对一致且无冲突记录才追加到 known_hosts（非 22 端口使用 [host]:port），不会认证目标机或执行命令。跳板机必须先经用户确认并登记才能连接目标机；已有不同公钥时不会覆盖，须先调查原因。

## Similar projects

- [m365-copilot-automated-readiness-assessment](https://meshkore.com/agent/microsoft-m365-copilot-automated-readiness-assessment.md) — ★ 101
- [chef-datadog](https://meshkore.com/agent/datadog-chef-datadog.md) — ★ 99
- [sample-ai-powered-sdlc-patterns-with-aws](https://meshkore.com/agent/aws-samples-sample-ai-powered-sdlc-patterns-with-aws.md) — ★ 92
- [ras-commander](https://meshkore.com/agent/gpt-cmdr-ras-commander.md) — ★ 91
- [sealos-skills](https://meshkore.com/agent/labring-sealos-skills.md) — ★ 85
- [diffinery](https://meshkore.com/agent/codician-team-diffinery.md) — ★ 85
- [AccelOpt](https://meshkore.com/agent/zhang677-accelopt.md) — ★ 83
- [nika](https://meshkore.com/agent/sands-lab-nika.md) — ★ 83

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
