Ssh Vps Manage

Manage VPS SSH aliases in ~/.ssh/vps.config (included from ~/.ssh/config) with unified key-based authentication and direct key sync.

24 stars 3 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add xiao-vvv/ssh-vps-skill --skill ssh_vps_manage
Manual install
git clone --depth 1 https://github.com/xiao-vvv/ssh-vps-skill.git /tmp/ssh-vps-skill
mkdir -p ~/.claude/skills
cp -r /tmp/ssh-vps-skill/. ~/.claude/skills/ssh_vps_manage

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# SSH VPS Manage

This skill focuses on **统一用 `~/.ssh/vps` 公钥连接**,并把连接信息写入 `~/.ssh/vps.config`(由 `~/.ssh/config` 通过 `Include ~/.ssh/vps.config` 引入)。
默认不走外部 ssh-agent(例如 1Password / Secretive 等 agent)。

## 标准流程与安全契约(重要)
新机初始化的安全顺序,**务必按此执行**:
1. `init-key`(首次,本地生成 `~/.ssh/vps`,已存在则跳过)
2. `add <alias> <host> --password '<pw>'`(存别名 + 下发公钥)
3. `<alias>` 或 `status <alias>`:**验证密钥能登**
4. 确认能登后才 `lock <alias>`(关闭密码登录);如需改端口再 `port <alias> [newport]`

- `lock` / `port` 是**破坏性、修改远端 sshd 的操作**,执行前必须先确认密钥可登;脚本本身也会先验证,验证不过会拒绝执行、不会把人锁在门外。
- 命令成功以 `OK:` / `Done:` 前缀输出,失败以 `FAIL:` / `ERROR:` 或非零退出码表示——据此判断结果。
- `port` 改端口前请提醒用户:**检查服务商安全组/外部防火墙是否放行新端口**,否则本机配好也连不上(脚本会实测新端口、连不上自动回滚到旧端口)。

## 目录
- `scripts/ssh-vps.sh`:增删查改别名、同步 key、直连。

## 使用方式(主命令)
```bash
bash skills/ssh_vps_manage/scripts/ssh-vps.sh help
```

## 常用命令

### 生成本地密钥(首次)
```bash
bash skills/ssh_vps_manage/scripts/ssh-vps.sh init-key
```
非交互生成 `~/.ssh/vps`(ed25519),已存在则不覆盖。

### 列表
```bash
bash skills/ssh_vps_manage/scripts/ssh-vps.sh list
```

### 新增 / 更新别名(默认 key 连接)
```bash
bash skills/ssh_vps_manage/scripts/ssh-vps.sh add <alias> <host> --user root --port 22
```

### 新增别名并写入公钥(提供密码时)
```bash
bash skills/ssh_vps_manage/scripts/ssh-vps.sh add <alias> <host> --user root --port 22 --password '<password>'
```

### 删除别名
```bash
bash skills/ssh_vps_manage/scripts/ssh-vps.sh rm <alias>
```

### 同步公钥到远端(默认目标为 key + 端口)
Read the full skill on GitHub

Details

Skill name
ssh_vps_manage
License
MIT
Repo updated
23 June 2026

FAQ

What does the Ssh Vps Manage skill do?

Manage VPS SSH aliases in ~/.ssh/vps.config (included from ~/.ssh/config) with unified key-based authentication and direct key sync.

How do I install the Ssh Vps Manage skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add xiao-vvv/ssh-vps-skill --skill ssh_vps_manage. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Ssh Vps Manage popular?

It lives in xiao-vvv/ssh-vps-skill, which has 24 GitHub stars and 3 forks.

Related skills

Self Evolve

26

DaizeDong/self-evolve

Improve an existing skill or repository through isolated proposals, reproducible evaluation and evidence-based acceptance. Use for self-evolve or skill improvement.

Other

Ip Character Designer

24

Beatatata/ip-character-designer

IP 角色设计全案生成器——从概念到完整品牌视觉系统的一站式 IP 角色设计。 触发场景:用户说"IP设计"、"角色设计"、"做个形象"、"设计吉祥物"、"表情包"、 "品牌IP"、"设计一个角色"、"帮我做个卡通形象"、"mascot design"。

Other

Hand Raisers

22

ToolMonsters/hand-raisers

Find people publicly asking for what the user sells, this week, across Reddit and forums, qualify each ask, check the competition, and draft a helpful reply. Trigger on /hand-raisers or "find people asking for [X]".

Other

Kalopilot Sender

24

adanghd/sender-kalopilot-skill

Kirim data TikTok Shop dari KaloPilot ke WhatsApp dan/atau Telegram secara terjadwal. Gunakan skill ini ketika user ingin setup pengiriman otomatis data kalopilot ke WA atau Telegram, mengubah jadwal, mengirim data sekarang, atau mengelola konfigurasi sender.

Other

Oneskills

24

onescience-ai/OneSkills

OneSkills 是面向 AI4S 的科研智能体技能库,聚焦科研开发、实验运行与环境交付等关键环节,提供可复用、可组合、可落地的任务执行能力。

Other

Kk Exhibition Planner Skill

25

sunzhaokai95/kk-exhibition-planner-skill

展览策划工作助手,覆盖从项目启动到输出展览大纲的完整流程。适用于企业展厅、博物馆/文化馆、文旅/主题展馆三类项目。当用户需要策划展览、撰写展陈大纲、确定展览主题、梳理展览叙事逻辑、整理甲方资料时使用此 skill。

Other

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.