SSH Exec for Openclaw

A specialized skill for executing non-interactive commands on remote Tailscale nodes via SSH with full stdout/stderr capture.

xejrax
v1.0.0
Feb 4, 2026
0
5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install ssh-exec

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install ssh-exec using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is SSH Exec?

The SSH Exec skill provides a secure and efficient way for AI agents to interact with remote infrastructure. By leveraging the SSH protocol, this skill allows for the execution of discrete commands on Tailscale nodes or any reachable SSH host without the overhead of maintaining a persistent interactive session. This capability is essential for managing remote servers, retrieving system information, or deploying updates across a distributed network within the Openclaw Skills framework.

Built for speed and security, it utilizes local SSH keys and environment variables to authenticate and direct traffic. This makes it a perfect tool for developers and sysadmins who need to bridge the gap between local automation and remote host control while maintaining high security standards.

SSH Exec Use Cases

  • Monitoring remote system health by checking disk usage, CPU load, and memory statistics.
  • Automating software updates and service restarts across a fleet of remote servers.
  • Auditing configurations and logs on distributed nodes without manual intervention.
  • Running local shell scripts on remote environments through secure piping techniques.

How SSH Exec Works

  1. The AI agent identifies a target host and the specific shell command to be executed.
  2. The skill parses environment variables such as SSH_TARGET or SSH_PORT to resolve the destination.
  3. A secure SSH connection is initiated using the local system's ssh binary and existing authentication keys.
  4. The command is transmitted to the remote host for execution in a non-interactive shell.
  5. The remote process completes, and the skill captures all stdout and stderr output to return to the agent.

SSH Exec Setup

Ensure the ssh binary is installed on your host machine. You must have SSH keys configured in your ~/.ssh/ directory or an active SSH_AUTH_SOCK for passwordless access. Set the target environment variable before use:

export SSH_TARGET="100.107.204.64:8022"

You can then run commands directly:

ssh -p 8022 [email protected] "uname -a"

SSH Exec Data Schema & Taxonomy

Field Description
SSH_TARGET Combined host and port string (e.g., 100.107.204.64:8022).
SSH_HOST The IP address or hostname derived from the target or env.
SSH_PORT The communication port, defaulting to 22 if not specified.
Command The raw shell command string sent to the remote host.
Response The captured output stream containing both system logs and errors.

SSH Exec Advanced Features

  • Support for dynamic port configuration via SSH_PORT environment variables.
  • Remote script execution by piping local files to bash -s on the target host.
  • Seamless integration with Tailscale private networking for secure node-to-node communication.
  • Full compatibility with existing SSH configuration files and agent-based authentication.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*