← Back to Blog

How to Run an AI SSH Server Admin Agent with OE Runtime

Run a full health check on any remote Linux server via SSH. OE Runtime connects with your private key, runs system commands, checks services and security, and delivers a structured HEALTHY / WARNING / CRITICAL report — no SSH client or manual commands needed.

🖥️
Step 1
Gather System Info
Run uname, uptime, df -h, free -m, and top to capture OS, load, disk, memory, and CPU.
Step 2
Check Services & Security
Check open ports, failed systemd services, recent logins, and the last 24 hours of error logs.
Step 3
Report
Produce a health report with flagged metrics and an overall HEALTHY / WARNING / CRITICAL status.

What You Need


Create the Project Folder

Create a folder called ssh/ and add these two files:

ssh/
├── SKILL.md         # the portable skill (agentskills.io)
├── agent.yaml       # wires SKILL.md to your connector
└── oe-config.json  # LLM key + connector credentials

The Skill Files

Create SKILL.md inside an ssh/ directory. This is the portable skill — it follows the agentskills.io format and runs unchanged on Claude, Cursor, Windsurf, or OE Runtime:

---
name: ssh
description: Run a health check on a remote Linux server via SSH
license: Apache-2.0
metadata:
  author: Open Enthrium
  version: "1.0"
---

You are a server administrator. Use SSH to run commands on remote servers.
Check system health, monitor resources, and report findings clearly.
Always explain what each command is checking before running it.
Complete all steps fully before writing your report.

## Step 1: Gather System Info
Run these SSH commands one at a time:
1. uname -a  (kernel and OS info)
2. uptime    (load average and uptime)
3. df -h     (disk usage per mount point)
4. free -m   (memory usage)
5. top -bn1 | head -20  (CPU and top processes)

## Step 2: Check Services and Security
Run these SSH commands one at a time:
1. ss -tlnp              (open ports and listening services)
2. systemctl list-units --state=failed  (failed systemd services)
3. last -n 10            (recent logins)
4. journalctl -p err --since "24 hours ago" | tail -20  (recent errors)

## Step 3: Report
Produce a server health report:
- OS and kernel version
- Uptime and load average (flag if load > number of CPUs)
- Disk usage (flag any mount > 80% full)
- Memory usage (flag if used > 90%)
- Open ports and services
- Failed services (if any)
- Recent logins
- Recent error log entries
- Overall status: HEALTHY / WARNING / CRITICAL

Create agent.yaml in the same directory to wire the skill to your connector:

name: Server Admin Agent
description: Run a health check on a remote Linux server via SSH
connectors:
  - connection_name: My Server
    connection_type: ssh
skills:
  - path: ./
    trigger_type: auto

The Config File

Create oe-config.json in the same directory:

{
  "llm": {
    "provider": "openai",
    "model": "gpt-4o",
    "apiKey": "YOUR_OPENAI_API_KEY"
  },
  "server": {
    "enabled": false,
    "port": 3333,
    "apiKey": "your-secret-api-key"
  },
  "connectors": [
    {
      "connection_name": "My Server",
      "connection_type": "ssh",
      "host": "192.168.1.100",
      "port": 22,
      "username": "ubuntu",
      "privateKey": "-----BEGIN OPENSSH PRIVATE KEY-----\nYOUR_PRIVATE_KEY_CONTENT\n-----END OPENSSH PRIVATE KEY-----"
    }
  ]
}

Replace the host with your server's IP or hostname and point privateKey to your SSH private key file path. The username is typically ubuntu for AWS EC2, root or admin for other providers. Ensure the public key is in the server's ~/.ssh/authorized_keys.

Download OE Runtime

OE Runtime — Direct Downloads

Run the Agent

From the parent folder containing your skill directory:

MethodBest forDownload
1 npx recommended No install needed — always runs the latest version —
2 Windows .exe Download once, run offline on Windows ⊞ Windows (.exe)
3 macOS binary Download once, run offline on Mac  macOS
4 Linux binary Server deployments, cron jobs, Docker 🐧 Linux
5 API Server integration Call from any app, webhook, or automation pipeline 📮 Postman Collection

1 npx recommended

npx -y @openenthrium/oe-runtime@latest ./ssh

2 Windows

oe-runtime-win.exe ./ssh

3 macOS

chmod +x oe-runtime-macos
./oe-runtime-macos ./ssh

First run blocked? System Settings → Privacy & Security → Allow Anyway.

4 Linux

chmod +x oe-runtime-linux
./oe-runtime-linux ./ssh

5 API Server integration

Add a "server" block to oe-config.json, then start with --serve:

{
  "llm": { ... },
  "server": { "enabled": true, "port": 3333, "apiKey": "your-secret-key" },
  "connectors": [ ... ]
}
npx -y @openenthrium/oe-runtime@latest --serve --config oe-config.json

Run with inline YAML:

curl -X POST http://localhost:3333/run \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-secret-key" \
  -d '{"yaml": "...", "params": {}}'

Or run from a file on the server:

curl -X POST http://localhost:3333/run-file \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-secret-key" \
  -d '{"file": "/path/to/agent.yaml", "params": {}}'

Use Cases

Build your own agents with OE Runtime

Download OE Runtime and run any AI agent locally or as a server — no cloud required.

Get OE Runtime →
Series OE Runtime Agent Guides — 21 Connectors
Series overview →