星月 a4c1bea0bb refactor(onboard): reorder cfg before gitea, move SSH pubkey registration to gitea step
- 01 SSH: generation only, removed gitea registration
- 03 ↔ 04 swapped: cfg (03) before gitea (04)
- 04 Gitea: added SSH pubkey registration (API + Web UI)
- self-check.sh: synced 03/04 order
2026-04-22 20:55:10 +08:00

24 lines
480 B
Markdown

# 01. SSH 密钥对
## 检查
```bash
ls ~/.ssh/id_ed25519.pub 2>/dev/null && cat ~/.ssh/id_ed25519.pub
```
✅ 达标:存在 `~/.ssh/id_ed25519.pub`,内容类似 `ssh-ed25519 AAAA... name@shazhou.work`
## 安装
```bash
# 替换 AGENT_NAME 为你的名字(如 xingyue / xiaomo / xiaoju)
ssh-keygen -t ed25519 -C "AGENT_NAME@shazhou.work" -f ~/.ssh/id_ed25519 -N ""
```
## 验证
```bash
ls -la ~/.ssh/id_ed25519 ~/.ssh/id_ed25519.pub
cat ~/.ssh/id_ed25519.pub
```