用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill ssh-remote-access命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | ssh-remote-access |
| description | SSH remote access — key gen, authorized_keys, config, test. |
When the user describes a problem or task happening on a remote server (keywords: "the server is doing", "in production", "on the VPS", "the remote machine", "my server", "server logs", "server crash"), proactively offer help:
"It looks like this is happening on a remote server. I can help you configure SSH access so I can run commands directly. Want me to set that up?"
Only proceed if the user confirms. Then follow this flow:
# Check if a Claude-specific key already exists
ls ~/.ssh/id_ed25519_claude 2>/dev/null && echo "KEY_EXISTS" || echo "KEY_MISSING"
If missing, generate it:
ssh-keygen -t ed25519 -f ~/.ssh/id_ed25519_claude -N "" -C "claude-code"
cat ~/.ssh/id_ed25519_claude.pub
Display it to the user and say: "Add this public key to ~/.ssh/authorized_keys on the server."
If ssh-copy-id is available and the user can provide the server address and a temporary password/key, offer to run it:
ssh-copy-id -i ~/.ssh/id_ed25519_claude.pub user@server-ip
Confirm user consent before running any remote command.
Ask the user for:
<host-name> — a short alias (e.g., prod, staging)<host-ip> — the server IP or hostname<ssh-user> — the SSH user on the serverThen run via Bash:
cat >> ~/.ssh/config <<EOF
Host <host-name>
HostName <host-ip>
User <ssh-user>
IdentityFile ~/.ssh/id_ed25519_claude
StrictHostKeyChecking accept-new
EOF
ssh <host-name> echo "SSH connection successful"
If it succeeds, confirm to the user. If it fails, diagnose: check authorized_keys permissions (chmod 600), sshd_config settings, and firewall rules.
After successful setup, update the target project's context:
.dev-team-agents/user-data/session-summary.md a note that SSH access to <host-name> is configuredCLAUDE.md (if it exists):## Remote SSH Access
SSH to `<host-name>` is configured via `~/.ssh/config`. Use `ssh <host-name> <command>` directly in Bash tool calls. Key: `~/.ssh/id_ed25519_claude`.
This ensures future agents in this project know SSH is available without repeating the setup.
If any step cannot be executed via Bash, provide the full manual walkthrough:
ssh-keygen command to run in the terminalauthorized_keys on the server~/.ssh/config block to paste manually