技能 ssh
📦

ssh

内容修订 r1 严重 ⚙️ 外部命令🌐 网络访问📁 文件系统访问

安全管理 SSH 工作流

远程服务器访问通常需要准确的 SSH 语法和谨慎的密钥处理。此技能为连接、传输、隧道、jump host 和故障排查提供实用的 SSH 模式。

支持: Claude Codex Code(CC)
⚠️ 38 差

使用我的智能体安装

将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。

智能体请求
Review the Skillstore skill "ssh" from https://skillstore.io/skills/dicklesworthstone-ssh.md and its manifest at https://skillstore.io/api/skills/dicklesworthstone-ssh/manifest. Verify the artifact. Do not auto-install. Inspect the skill and report your findings, then wait for an operator or manual installation decision.

你的智能体仍应展示其计划,并按安全策略请求必要确认。

Agent 可读资源

当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。

测试它

正在使用“ssh”。 我需要把文件复制到服务器。

预期结果:

该技能会推荐一种 SCP 上传模式,并为本地文件、远程用户、主机和目标路径使用占位符。

正在使用“ssh”。 我需要在本地访问远程数据库。

预期结果:

该技能会解释本地 SSH 隧道,并指出哪个本地端口映射到远程数据库端点。

正在使用“ssh”。 我的 SSH 主机密钥发生了变化。

预期结果:

该技能会展示如何删除过期的 known_hosts 条目,并提醒用户验证新的主机指纹。

安全审计

严重
v10 • 2026/7/9 打开版本化报告

Most static hits are Markdown examples for standard SSH administration, not executable code or hidden malware. The remaining confirmed risks involve sensitive SSH key paths, ssh-agent usage, host trust file changes, tunneling, and agent forwarding that require explicit user authorization and safer guidance.

1
已扫描文件
247
分析行数
11
复核项
0
已忽略误报

已确认安全问题 (11)

严重
SSH directory access
ssh -i ~/.ssh/my_key user@hostname
The example uses a private SSH key path under ~/.ssh for authentication. This is expected SSH usage but involves sensitive credential material.
严重
SSH directory access
IdentityFile ~/.ssh/myserver_key
The config example points IdentityFile at ~/.ssh, which identifies private credential material. This is expected SSH usage but security-sensitive.
严重
SSH directory access
ssh-add ~/.ssh/id_ed25519
The command loads ~/.ssh/id_ed25519 into ssh-agent. This directly operates on a private key file and is security-sensitive.
严重
SSH directory access
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
The command loads ~/.ssh/id_ed25519 into ssh-agent and the macOS keychain. This directly operates on a private key file and is security-sensitive.
严重
SSH directory access
ssh-keyscan hostname >> ~/.ssh/known_hosts
The command writes scanned host keys into ~/.ssh/known_hosts. This changes SSH trust decisions and can be dangerous without fingerprint verification.
严重
SSH private key file
ssh-add ~/.ssh/id_ed25519
The example directly references ~/.ssh/id_ed25519, a common SSH private key file. Any automated handling of this path requires explicit user authorization.
严重
SSH private key file
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
The example directly references ~/.ssh/id_ed25519, a common SSH private key file. Adding it to an agent or keychain is credential-sensitive.
高
SSH host/auth files
ssh-keyscan hostname >> ~/.ssh/known_hosts
The example appends to known_hosts, an SSH host authentication file. Trust file changes should verify the host fingerprint first.
显示全部 11 条已确认问题
高
Agent Forwarding Enabled in Example Configuration
The SSH config example sets ForwardAgent yes. Agent forwarding can expose the local SSH agent to a compromised remote host and should be disabled unless explicitly needed.
The exact configuration directive is present and is a known SSH security risk when used broadly.
高
Host Key Trust Added Without Verification
The known_hosts example pipes ssh-keyscan output directly into the trust file. This can trust an attacker-controlled key during a man-in-the-middle attack if fingerprints are not verified out of band.
The command directly appends scanned host keys to known_hosts and the surrounding text does not instruct fingerprint verification.
中
Remote Port Forwarding Can Expose Local Services
The remote forwarding example maps a local service to a remote port. This is legitimate SSH behavior but can unintentionally expose local development services to users on the remote host.
The example clearly documents ssh -R remote forwarding; exposure depends on server policy and bind settings.
能力复核项 (11)

这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。

高
SOCKS proxy
# Use localhost:1080 as SOCKS5 proxy
The skill intentionally documents dynamic SOCKS tunneling, which can route browser or application traffic through a remote host. This is legitimate SSH usage but can bypass network controls if used without authorization.
高
Hidden file in home directory
ssh -i ~/.ssh/my_key user@hostname
The command references an SSH identity file under ~/.ssh, which is sensitive local credential material. The example is legitimate SSH usage, but it can cause an agent to operate on private key paths.
高
Hidden file in home directory
IdentityFile ~/.ssh/myserver_key
The config example references an IdentityFile under ~/.ssh, which is sensitive credential material. The usage is expected for SSH, but it still directs access to private key paths.
高
Hidden file in home directory
ssh-add ~/.ssh/id_ed25519
The ssh-add example loads a private key from ~/.ssh into the agent. This is a sensitive credential operation even though it is normal SSH practice.
高
Hidden file in home directory
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
The macOS keychain example loads a private key from ~/.ssh into ssh-agent. This is a sensitive credential operation involving private key material.
高
Hidden file in home directory
ssh-keyscan hostname >> ~/.ssh/known_hosts
The command appends host key material into ~/.ssh/known_hosts. Modifying SSH trust files is security-sensitive and should include fingerprint verification.
中
Hidden file access
ssh -i ~/.ssh/my_key user@hostname
The command accesses an SSH identity path in a hidden home directory. This is legitimate but security-sensitive because it uses private key material.
中
Hidden file access
IdentityFile ~/.ssh/myserver_key
The config entry accesses an SSH identity path in a hidden home directory. This is legitimate but security-sensitive because it points to private key material.
中
Hidden file access
ssh-add ~/.ssh/id_ed25519
The ssh-add command accesses a private key path in ~/.ssh. Loading keys into an agent is security-sensitive even when user authorized.
中
Hidden file access
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
The ssh-add keychain command accesses a private key path in ~/.ssh. Loading keys into an agent is security-sensitive even when user authorized.
中
Hidden file access
ssh-keyscan hostname >> ~/.ssh/known_hosts
The command writes to ~/.ssh/known_hosts, changing local SSH host trust state. This is legitimate but should not be automated without validation.

检测到的模式

SSH directory access×5SSH private key file×2
审计者: claude 查看审计历史 →
分享与引用此报告

分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。

打开版本化报告
安全评估

复制报告链接

https://skillstore.io/skills/dicklesworthstone-ssh/audits/10?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown 徽章

[![Skillstore security assessment](https://skillstore.io/badges/skills/dicklesworthstone-ssh/security.svg)](https://skillstore.io/skills/dicklesworthstone-ssh?utm_source=security_passport_badge)

HTML 徽章

<a href="https://skillstore.io/skills/dicklesworthstone-ssh?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dicklesworthstone-ssh/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

嵌入卡片

<iframe src="https://skillstore.io/embed/skills/dicklesworthstone-ssh.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
学术引用 (APA · BibTeX · CFF)

APA 引用

Dicklesworthstone. (2026). ssh security audit report (audit version 10) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dicklesworthstone-ssh/audits/10

BibTeX 引用

@techreport{dicklesworthstone-dicklesworthstone-ssh-2026, author = {Dicklesworthstone}, title = {ssh security audit report (audit version 10)}, institution = {Skillstore}, year = {2026}, number = {10}, url = {https://skillstore.io/skills/dicklesworthstone-ssh/audits/10}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "ssh security audit report (audit version 10)" version: "unspecified" type: report authors: - name: "Dicklesworthstone" date-released: "2026-07-09" url: "https://skillstore.io/skills/dicklesworthstone-ssh/audits/10" identifiers: - type: other value: "skillstore:dicklesworthstone-ssh:audit:10" description: "Skillstore immutable audit report identifier"

Skillstore 评分

评分依据 证据置信度: 中
55
架构
85
可维护性
87
内容
70
社区
83
规范符合性

你能构建什么

连接到生产主机

使用主机别名、自定义端口和身份文件,以可重复的命令连接到已批准的服务器。

传输发布产物

使用 SCP 和 rsync 复制文件或同步目录,同时保留清晰的命令历史。

通过隧道调试私有服务

创建本地或 jump-host 隧道,以检查私有网络后的数据库、Web 服务或管理工具。

试试这些提示

连接到服务器
向我展示用于在默认端口连接到 user@hostname 的 SSH 命令。简要解释每个部分。
安全复制目录
给我一个 rsync 命令,用于将 ./local/ 复制到 user@host:/remote/path/。先包含一个 dry-run 命令。
创建 jump-host 隧道
帮我使用 SSH ProxyJump 通过堡垒主机连接到内部服务器。所有主机名都使用占位符。
审查我的 SSH 配置
审查此 SSH config 的安全风险,特别是代理转发、密钥路径、多路复用和主机密钥处理。

最佳实践

  • 在连接任何主机或创建任何隧道之前确认授权。
  • 在将密钥添加到 known_hosts 之前验证主机指纹。
  • 使用受密码短语保护的 Ed25519 密钥,并避免范围过大的代理转发。

避免

  • 不要在没有用户明确确认的情况下运行私钥相关命令。
  • 不要在未经验证的情况下将 ssh-keyscan 输出添加到 known_hosts。
  • 不要使用隧道绕过组织网络策略。

常见问题

此技能会自动连接到服务器吗?
不会。它提供命令模式。用户必须在自己的环境中授权并运行命令。
它能帮助处理 SSH 密钥吗?
可以。它展示密钥生成、ssh-copy-id 和 ssh-agent 模式,但私钥处理需要格外谨慎。
它支持文件传输吗?
支持。它包括用于上传、下载、递归复制和 dry run 的 SCP 与 rsync 示例。
它可以创建 SSH 隧道吗?
可以。它涵盖本地、远程、动态 SOCKS 和 jump-host 转发模式。
代理转发安全吗?
在不受信任的主机上,代理转发可能存在风险。仅在需要时为特定受信任系统启用它。
我应该验证 known_hosts 条目吗?
应该。请先通过可信渠道验证主机密钥指纹,再添加或替换 known_hosts 条目。

开发者详情

许可证

MIT

Skillstore 修订

r1

版本提示

作者未声明版本。

引用

1ffa7643651792ccb4bd3b15d924d2c97edff755

维护新鲜度

2026/7/18

使用量

17 次下载 · 210 次浏览

文件结构

📄 SKILL.md

Dicklesworthstone 的更多技能

查看全部
查看全部