ssh

GitHub

通过SSH在远程服务器执行Shell命令,涵盖语法、远程与本地区分及自动凭证解析。

internal/ai/skills/ssh/SKILL.md opskat/opskat

Trigger Scenarios

需要远程执行系统状态检查或配置查看 需要在远程服务器上运行Shell脚本或命令

Install

npx skills add opskat/opskat --skill ssh -g -y
More Options

Non-standard path

npx skills add https://github.com/opskat/opskat/tree/main/internal/ai/skills/ssh -g -y

Use without installing

npx skills use opskat/opskat@ssh

指定 Agent (Claude Code)

npx skills add opskat/opskat --skill ssh -a claude-code -g -y

安装 repo 全部 skill

npx skills add opskat/opskat --all -g -y

预览 repo 内 skill

npx skills add opskat/opskat --list

SKILL.md

Frontmatter
{
    "name": "ssh",
    "description": "Run shell commands on a remote server over SSH via exec. Covers command syntax and the remote-vs-local distinction."
}

SSH assets

Command syntax

Pass the shell command verbatim as command:

  • uptime
  • systemctl status nginx
  • cat /etc/nginx/nginx.conf
  • df -h | grep -v tmpfs

Notes

  • The command runs on the remote server, never on the user's machine. Tools named local_* operate on the user's own machine and are not interchangeable with this one.
  • Use cat / ls / grep inside the command to inspect remote files.
  • The scope parameter is not used by SSH assets.
  • Credentials are resolved automatically; never ask the user for a password.

Asset config (for put_asset)

field type required notes
host string yes
port number yes No server-side default — pass 22 explicitly
username string yes
password string no Stored encrypted; never echoed back
auth_type string no "password", "key", or "agent"; defaults to "key" when private_key is set, else "password"
private_key string no SSH private key in PEM format; imported into the credential store
passphrase string no Passphrase for private_key, if encrypted
agent_source_id number yes when auth_type="agent" SSH agent source to authenticate through; must be a positive ID of an existing source
agent_key_fingerprint string yes when auth_type="agent" SHA256 fingerprint of the identity to use. With agent_source_id, mutually exclusive with password / private_key / passphrase / credential_id; non-agent auth types must not carry either agent field

Version History

  • d6c7a6e Current 2026-08-16 07:29

    修正文档契约漂移,补充auth_type=agent及其相关字段说明。

  • aeb4bc3 2026-07-24 16:28

Same Skill Collection

internal/ai/skills/database/SKILL.md
internal/ai/skills/etcd/SKILL.md
internal/ai/skills/k8s/SKILL.md
internal/ai/skills/kafka/SKILL.md
internal/ai/skills/local/SKILL.md
internal/ai/skills/mongodb/SKILL.md
internal/ai/skills/oss/SKILL.md
internal/ai/skills/rdp/SKILL.md
internal/ai/skills/redis/SKILL.md
internal/ai/skills/serial/SKILL.md
internal/ai/skills/vnc/SKILL.md
plugin/opsctl/skills/opsctl/SKILL.md

Metadata

Files
0
Version
d6c7a6e
Hash
391247b3
Indexed
2026-07-24 16:28

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-18 05:02
浙ICP备14020137号-1 $mapa de visitantes$