RestSSH for Openclaw

An MCP-based skill for executing SSH commands and managing persistent remote sessions across diverse device types.

is-the-king
v1.0.0
Feb 26, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install ssh-netmiko

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-netmiko 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 RestSSH?

RestSSH is a powerful integration for AI agents that enables seamless communication with remote servers and network devices via the SSH protocol. Built on the Model Context Protocol (MCP), it allows developers to automate command execution on Linux, Cisco IOS, and Juniper Junos environments through a standardized interface.

By using these Openclaw Skills, users can bridge the gap between AI-driven workflows and infrastructure management. The skill provides a robust abstraction layer, handling the complexities of session management, authentication, and vendor-specific syntax, making it an essential tool for modern DevOps and NetOps automation.

RestSSH Use Cases

  • Automating routine configuration tasks on Cisco or Juniper network hardware.
  • Executing remote maintenance scripts on Linux servers via AI agents.
  • Auditing command history and active sessions across a distributed infrastructure.
  • Managing long-lived SSH sessions with persistent database logging for troubleshooting.

How RestSSH Works

  1. The AI agent initializes a connection by calling the create session tool with specific device credentials.
  2. Commands are sent via the execute command tool, which routes the request through the MCP server to the target device.
  3. The skill tracks command history and session status in a local database for persistence.
  4. Users can query active or historical sessions to monitor remote activity.
  5. Sessions are explicitly closed to free up resources and maintain security.

RestSSH Setup

To integrate this into your workflow, ensure you have the necessary environment ready for Openclaw Skills.

# Ensure mcp2skill is installed globally
npm install -g mcp2skill

# List available tools for the restssh skill
mcp2skill list-tools --server restssh

# Call a tool to execute a command (example for Linux)
mcp2skill call-tool --server restssh --tool execute_ssh_command --args '{"command": "ls -la", "host": "192.168.1.1", "username": "admin", "password": "password", "device_type": "linux"}'

RestSSH Data Schema & Taxonomy

The skill organizes session and command data to ensure traceability and state management:

Data Component Description
Active Sessions In-memory list of currently connected SSH channels with unique IDs.
Session History Database records of all past connections, including start/end times.
Command History Detailed log of every command executed within a specific session context.
Device Profiles Metadata defining communication parameters for linux, cisco_ios, and juniper_junos.

RestSSH Advanced Features

  • Multi-vendor compatibility supporting Cisco IOS, Linux, and Juniper Junos devices.
  • Persistent database logging for auditing all historical sessions and executed commands.
  • Dynamic session creation that allows for on-the-fly execution without pre-defined session IDs.
  • Integrated health checks to monitor the status of the REST SSH gateway service.
  • Support for custom SSH ports and configurable command timeouts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*