跳至主要内容
小龙虾小龙虾AI
🤖

Ssh Exec

Run a single command on a remote Tailscale node via SSH without opening an interactive session.

下载2.6k
星标0
版本1.0.0
其他
安全通过

技能说明


name: ssh-exec description: "Run a single command on a remote Tailscale node via SSH without opening an interactive session." metadata: { "openclaw": { "emoji": "🖥️", "requires": { "bins": ["ssh"] }, "install": [], }, }

SSH Exec Skill

Run a single command on a remote Tailscale node via SSH without opening an interactive session. Requires SSH access to the target (key in ~/.ssh/ or SSH_AUTH_SOCK) and SSH_TARGET env var (e.g., 100.107.204.64:8022).

Execute a Remote Command

Run a command on the target and return stdout/stderr:

ssh -p 8022 user@100.107.204.64 "uname -a"

Execute with Custom Port

Use the SSH_TARGET env var:

ssh -p "${SSH_PORT:-22}" "$SSH_HOST" "df -h"

Run a Script Remotely

Pipe a local script to the remote host:

ssh -p 8022 user@100.107.204.64 'bash -s' < local-script.sh

如何使用「Ssh Exec」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Ssh Exec技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能