Remote Terminal for Openclaw

A powerful remote management skill for executing commands on Linux servers via SSH, Telnet, and web terminals with built-in security auditing.

ckaorceu
v1.0.0
Mar 21, 2026
0
759
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install remote-terminal

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 remote-terminal 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 Remote Terminal?

The Remote Terminal skill is an essential tool for developers and system administrators using Openclaw Skills to maintain remote infrastructure. It provides a seamless interface to connect to Linux servers, execute shell commands, and manage production environments directly through an AI agent. By supporting multiple authentication methods—including SSH keys, config aliases, and password-based login via sshpass—it ensures flexible yet secure access to any remote host.

Beyond simple command execution, this skill prioritizes safety and visibility. It incorporates a sophisticated security layer that detects dangerous command patterns and requires explicit user confirmation before proceeding. Every action is meticulously logged, providing a transparent audit trail for all remote operations, which is critical for team-based environments and compliance standards.

Remote Terminal Use Cases

  • Automating routine server maintenance and system status checks across multiple environments.
  • Managing Docker containers, including inspecting logs, restarting services, and checking container health.
  • Deploying updates or configuration changes to production, staging, and development servers.
  • Troubleshooting connectivity issues or performance bottlenecks using remote diagnostic tools.
  • Orchestrating parallel command execution across a fleet of servers for rapid scaling operations.

How Remote Terminal Works

  1. Host Identification: The skill parses the user request to determine the target hostname, IP address, or SSH alias and identifies the necessary credentials.
  2. Connection Construction: It builds the appropriate connection string (SSH, Telnet, or ttyd) based on the stored host configuration or user input.
  3. Security Analysis: Before execution, the command is screened against a blacklist and dangerous patterns (like rm -rf or mkfs).
  4. User Confirmation: If a high-risk command is detected, the skill prompts the user for explicit permission to proceed.
  5. Remote Execution: The command is executed on the remote host, capturing standard output, error streams, and exit codes.
  6. Audit Logging: The operation details, including timestamp and host, are recorded in the local log file for future reference.

Remote Terminal Setup

To enable the Remote Terminal skill, ensure you have the necessary SSH clients installed. For password-based authentication, sshpass is required. Host configurations can be managed via your standard ~/.ssh/config or the internal memory schema.

# Install sshpass for password support
sudo apt-get install sshpass

# Ensure your SSH key has the correct permissions
chmod 600 ~/.ssh/id_rsa

# Add the skill to your Openclaw Skills workspace
# Configuration is stored in ~/.qclaw/workspace/memory/hosts.json

Remote Terminal Data Schema & Taxonomy

The skill organizes host data and operation history using structured JSON and flat log files. This ensures high portability and easy auditing within the Openclaw Skills ecosystem.

File Path Description Data Type
~/.qclaw/workspace/memory/hosts.json Stores host aliases, IPs, usernames, and auth methods. JSON Object
~/.qclaw/logs/remote-terminal.log Chronological audit trail of every executed command. Plain Text (Log)
~/.ssh/config Standard SSH client configuration used for aliases. SSH Config

Example Host Schema:

  • Host Alias: Reference name (e.g., 'production').
  • Method: Authentication type (ssh-key, password, or config).
  • Tags: Metadata for grouping (e.g., 'web', 'database').

Remote Terminal Advanced Features

  • Parallel Execution: Run commands across multiple servers simultaneously using loop structures or pssh integration.
  • Interactive Session Support: Use the -t flag to allocate a pseudo-terminal for interactive tools like htop or nano.
  • Custom Security Hooks: Extend the command blacklist to include organization-specific restricted operations.
  • Automated Memory Integration: Automatically discover and use hosts defined in the Openclaw Skills memory layer.
  • Structured Data Parsing: Pipe remote command output directly into jq for structured JSON processing within the agent workflow.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*