Bundle
dsh-octoops
OctoOps: Unified SSH/Telnet & JumpServer Bastion Orchestrator for DeepSeek Harness (DSH)
- Source
- hesiwen66
- stars
- 1 stars
- License
- MIT
- Updated
- Updated yesterday
Readme
# OctoOps
DeepSeek Harness 的服务器运维与 JumpServer 堡垒机插件。
[](./LICENSE)
[](https://github.com/topics/dsh-plugin)
[](https://nodejs.org)
---
## 特性
- **远程命令执行与分析**:通过 SSH / Telnet 在目标主机上执行任意 Shell 命令与脚本,并由 AI 结构化解析输出结果。
- **远程文件读写**:内置 SFTP 支持,可直接读取和编辑远程配置文件与日志。
- **连接会话复用**:维护底层 SSH 连接池,同设备连续操作无需重复建立连接。
- **JumpServer 对接**:支持 API 认证与终端交互登录,自动通过堡垒机 SSH 网关代理访问内网资产;多账号资产支持弹窗选择。
- **环境信息采集**:连通时自动探测内网 IP、系统版本及已安装工具(Docker、Nginx、Git 等),支持按内网 IP 检索设备。
- **高危操作拦截**:`rm -rf`、`reboot`、清空防火墙等破坏性命令执行前强制拦截并要求二次确认。
- **Web 管理界面**:提供设备管理面板,支持设备列表管理、批量修改(分组/端口/密码)以及堡垒机资产搜索。
---
## 演示
### 示例 1:系统状态与 SSL 证书巡检

### 示例 2:JumpServer 堡垒机对接与资产同步

### 示例 3:设备管理面板与安全红线规则

---
## 安装
### 方式 1:DSH 命令
```bash
dsh plugin add hesiwen66/OctoOps
# 或
dsh plugin add dsh-octoops
```
### 方式 2:npm
```bash
npm install git+https://github.com/hesiwen66/OctoOps.git
```
### 方式 3:Git Clone
```bash
cd plugins
git clone https://github.com/hesiwen66/OctoOps.git dsh-octoops
cd dsh-octoops && npm install
```
---
## 配置
在 `cordis.patch.yml` 中配置:
```yaml
plugins:
dsh-octoops:
confirmPolicy: auto # 每会话首次执行确认 (auto / always / never)
dangerPolicy: always-ask # 高危命令强制确认
defaultTimeoutMs: 30000 # 命令超时时间 (ms)
jumpserverSshPort: 2222 # JumpServer 堡垒机 SSH 端口
```
---
## 工具列表
- `device_list` - 列出纳管设备与堡垒机资产
- `device_find` - 按 IP 或主机名查找设备
- `device_exec` - 在目标机器上执行命令
- `device_test` - 测试连通性并采集内网 IP
- `device_read_file` / `device_write_file` - 通过 SFTP 读写远程文件
- `device_memory` - 查看设备环境信息与历史记录
- `jumpserver_sync` - 同步 JumpServer 资产列表
- `/device-list`、`/device-exec` - 快捷斜杠命令
---
## License
[MIT](./LICENSE)
Install
dsh plugin --profile web add github:hesiwen66/OctoOps#ddb65300432b91cba374d68d853f792b39b5f005
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install dsh-octoops from the hub