Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计异常

qemu-alpine-sshqemu 高山 ssh

Agent Skill

qemu-alpine-ssh 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

824

周安装

34

GitHub Stars

93

下载量

269
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:qemu-alpine-ssh(qemu 高山 ssh)
来源仓库:https://github.com/letta-ai/skills
仓库路径:skills/qemu-alpine-ssh
安装命令:
npx skills add https://github.com/letta-ai/skills --skill qemu-alpine-ssh
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/letta-ai/skills --skill qemu-alpine-ssh

简介

用于查找、检索和筛选相关信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 使用时可结合来源仓库和原始 README 核验用法。
  • 安装前建议确认权限范围和是否会触发文件读写。
  • 注意维护状态和网络访问限制。qemu-alpine-ssh 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

QEMU Alpine SSH Setup

Overview

This skill provides procedural guidance for setting up QEMU virtual machines running Alpine Linux with SSH access configured. It covers VM startup, network port forwarding, Alpine system configuration, and SSH server setup.

Diagnostic-First Approach

Before attempting any QEMU setup or troubleshooting syntax, verify preconditions first:

1. Check Port Availability

Before starting QEMU with port forwarding, verify the target port is not in use:

# Preferred methods (if available)
ss -tlnp | grep :2222
netstat -tlnp | grep :2222
lsof -i :2222

# Fallback when standard tools unavailable
cat /proc/net/tcp | awk '{print $2}' | grep -i ":08AE"  # 08AE is hex for 2222

Port 2222 in hex is 08AE. Common ports: 22 = 0016, 2222 = 08AE, 8080 = 1F90.

2. Check for Existing QEMU Processes

Always verify no orphaned QEMU processes exist:

# Find QEMU processes
ps aux | grep qemu
pgrep -la qemu

# Kill all QEMU processes if needed
pkill -9 qemu-system
pkill -9 qemu

3. Verify ISO/Image Files Exist

Confirm required files are present before starting QEMU:

ls -la /path/to/alpine.iso
file /path/to/alpine.iso

QEMU Startup Configuration

Basic Command Structure

qemu-system-x86_64 \
  -m 512 \
  -cdrom /path/to/alpine.iso \
  -boot d \
  -nographic \
  -netdev user,id=net0,hostfwd=tcp::2222-:22 \
  -device virtio-net-pci,netdev=net0

Port Forwarding Syntax

The correct hostfwd syntax is: tcp::[host_port]-:[guest_port]

Valid examples:

  • hostfwd=tcp::2222-:22 - Forward host 2222 to guest 22
  • hostfwd=tcp:127.0.0.1:2222-:22 - Bind only to localhost
  • hostfwd=tcp:0.0.0.0:2222-:22 - Bind to all interfaces

Common Error: "Could not set up host forwarding rule"

This error typically means the port is already in use, NOT a syntax error. When encountering this:

  1. Do NOT iterate on syntax variations
  2. Immediately check port availability (see Diagnostic-First Approach)
  3. Kill any orphaned QEMU processes
  4. Retry with the same command

Alpine Linux Configuration Steps

1. Boot and Login

Alpine boots to a login prompt. Login as root (no password initially).

2. Set Root Password

passwd
# Enter password twice when prompted

3. Configure Network (if needed)

setup-interfaces
# Select eth0, dhcp, no manual config, done
ifup eth0

4. Configure Package Repositories

setup-apkrepos
# Select a mirror (enter number) or 'f' for fastest

5. Install OpenSSH

apk update
apk add openssh

6. Configure SSH for Root Login

Edit /etc/ssh/sshd_config:

# Enable root login with password
sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
sed -i 's/#PasswordAuthentication.*/PasswordAuthentication yes/' /etc/ssh/sshd_config

7. Start SSH Service

rc-update add sshd
rc-service sshd start
# Or simply: /etc/init.d/sshd start

Automation with Expect Scripts

For non-interactive setup, use expect scripts. Key considerations:

Script Structure

#!/usr/bin/expect -f
set timeout 300

spawn qemu-system-x86_64 -m 512 -cdrom alpine.iso -boot d -nographic \
  -netdev user,id=net0,hostfwd=tcp::2222-:22 \
  -device virtio-net-pci,netdev=net0

# Wait for login prompt
expect "login:"
send "root\r"

# Continue with setup commands...
expect "# "
send "passwd\r"
expect "New password:"
send "password123\r"
expect "Retype password:"
send "password123\r"

# IMPORTANT: End with 'interact' not 'interac)' or other typos
interact

Expect Script Best Practices

  • Set adequate timeout (300+ seconds for network operations)
  • Include error handling for network timeouts during apk update
  • Verify script syntax before execution (check for typos like interac))
  • Use explicit \r for carriage returns, not \n

Verification Strategies

Verify SSH Connectivity

From the host:

ssh -p 2222 -o StrictHostKeyChecking=no root@localhost
# Or
ssh -p 2222 -o StrictHostKeyChecking=no root@127.0.0.1

Verify Port Forwarding is Active

# Check QEMU process shows hostfwd
ps aux | grep qemu | grep hostfwd

# Check port is listening
ss -tlnp | grep 2222

Verify SSH Service in Guest

Inside the Alpine VM:

rc-service sshd status
netstat -tlnp | grep :22

Common Pitfalls

1. Orphaned QEMU Processes

After killing a QEMU session, orphaned processes may still hold ports. Always run pkill qemu-system before retrying failed commands.

2. Premature Syntax Debugging

When port forwarding fails, the instinct is to try different syntax variations. This wastes time. The hostfwd syntax is well-documented and rarely the issue—check port availability first.

3. Missing Service Enablement

Installing openssh is not enough. The service must be:

  • Started: rc-service sshd start
  • Enabled for boot: rc-update add sshd

4. SSH Configuration Not Applied

After modifying /etc/ssh/sshd_config, restart the service:

rc-service sshd restart

5. Network Not Configured

Alpine minimal ISO does not auto-configure networking. Run setup-interfaces and ifup eth0 before attempting to install packages.

6. Repository Not Configured

apk update will fail without configured repositories. Run setup-apkrepos first.

Troubleshooting Checklist

When SSH connection fails, check in order:

  1. Is QEMU running? (ps aux | grep qemu)
  2. Is the host port listening? (ss -tlnp | grep 2222)
  3. Is the guest network up? (In VM: ip addr)
  4. Is SSH service running? (In VM: rc-service sshd status)
  5. Is root login permitted? (Check /etc/ssh/sshd_config)
  6. Is the password set? (Try passwd again in VM)

Resource Cleanup

After completing tasks, clean up:

# Kill QEMU processes
pkill qemu-system

# Verify ports released
ss -tlnp | grep 2222  # Should return nothing

# Remove temporary files if created
rm -f /tmp/alpine-setup.exp

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.87%
按下载量换算75

Gemini CLI

22.75%
按下载量换算61

Antigravity

17.01%
按下载量换算46

windsurf

12.57%
按下载量换算34

OpenCode

7.49%
按下载量换算20

Codex

3.82%
按下载量换算10

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/letta-ai/skills --skill qemu-alpine-ssh;npx skills add letta-ai/skills --skill "qemu-alpine-ssh" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills