技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.1
统计:⭐ 0 · 26 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :可疑 · OpenClaw :良性
Package:aowind/sjht-ssh-ops
安全扫描(ClawHub)
- VirusTotal :可疑
- OpenClaw :良性
OpenClaw 评估
The skill's files and instructions match its stated purpose (SSH key generation, deployment, testing and remote commands); nothing in the package appears malicious, but there are a few operational and safety concerns you should be aware of before running it.
目的
Name/description align with the included SKILL.md and the bash script. The script provides key generation, public-key deployment (ssh-copy-id via sshpass), connection testing, host info, and listing — all expected for an SSH ops utility.
说明范围
SKILL.md and the script explicitly instruct the agent/user to run the included shell script and to perform arbitrary remote commands over SSH (expected). The script uses ssh-copy-id with StrictHostKeyChecking=no (accepts unknown host keys) and will attempt to install system package sshpass automatically; both are operational choices that reduce manual friction but weaken host-key verification and modify the system.
安装机制
There is no skill-level install spec (instruction-only), but the runtime script will attempt to install the sshpass package via apt-get or yum if missing. This modifies the host system, requires package manager access (and likely root), and is a side-effect the user should consent to and review.
证书
The skill metadata declares no required env vars, but SKILL.md and the script rely on an SSHPASS environment variable when deploying keys. SSHPASS carries a plaintext password for remote hosts — it's appropriate for the deploy feature but should have been declared as an optional env requirement and documented with cautions. Also the script reads/writes ~/.ssh (expected) and writes a private key file locally.
持久
The skill does not request persistent/always-on privileges and is user-invocable. However, at runtime it writes to ~/.ssh (creates keys) and can modify system packages (install sshpass). These are normal for this utility but are side effects that require user permission.
综合结论
This skill appears to do what it claims: generate SSH keys, deploy public keys, test logins, and run remote commands. Before installing or running it, review and consider the following: - Inspect the script yourself (scripts/ssh-key-setup.sh) to confirm you're comfortable with its behavior. It will write keys to ~/.ssh and may overwrite or add files there. - The script will try to install sshpass via apt-get or yum automatically if missing. Th…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「sjht-ssh-ops」。简介:SSH 密钥管理和远程服务器运维工具。 用于生成 SSH 密钥、部署公钥到远程主机实现免密登录、测试连接、查看远程主机信息、 以及远程执行运维命令。Use w…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/aowind/sjht-ssh-ops/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: ssh-ops
description: >
SSH 密钥管理和远程服务器运维工具。
用于生成 SSH 密钥、部署公钥到远程主机实现免密登录、测试连接、查看远程主机信息、
以及远程执行运维命令。Use when 用户需要连接远程服务器、配置 SSH 免密登录、
管理服务器、部署应用、或在远程主机上执行命令。触发短语包括:
"SSH登录"、"免密登录"、"服务器管理"、"远程部署"、"连接服务器"、"运维"。
---
# ssh-ops — SSH 密钥管理与远程运维
管理 SSH 密钥、部署免密登录、执行远程运维操作。
## 工作流程
### 1. 生成密钥(如果还没有)
```bash
bash <skill>/scripts/ssh-key-setup.sh gen
```
默认生成 `~/.ssh/id_ed25519`。如果已存在会提示。
### 2. 部署公钥到远程主机
需要密码时,设置 `SSHPASS` 环境变量:
```bash
SSHPASS='密码' bash <skill>/scripts/ssh-key-setup.sh deploy <host> [user]
```
脚本会自动安装 sshpass、使用 ssh-copy-id 部署公钥。
### 3. 测试免密登录
```bash
bash <skill>/scripts/ssh-key-setup.sh test <host> [user]
```
### 4. 查看远程主机信息
```bash
bash <skill>/scripts/ssh-key-setup.sh info <host> [user]
```
返回:主机名、系统版本、内核、内存、磁盘、负载。
## 远程执行命令
免密登录配置好后,可直接用 `ssh user@host "命令"` 执行任意远程操作:
```bash
# 查看进程
ssh root@host "ps aux | grep node"
# 安装软件
ssh root@host "apt-get update && apt-get install -y nginx"
# 传输文件
scp file.txt root@host:/tmp/
# 同步目录
rsync -avz ./dist/ root@host:/var/www/app/
```
## 安全提示
- `SSHPASS` 环境变量用完即 unset,不要持久化到文件
- 私钥(`id_ed25519`)权限必须是 600,`~/.ssh/` 权限必须是 700
- 不要在聊天记录中存储密码,使用时设环境变量
- 部署完成后验证免密登录,确认后再 unset 密码