โ† All skills
Tencent SkillHub ยท Security & Compliance

Host Hardening

Harden an OpenClaw Linux server with SSH key-only auth, UFW firewall, fail2ban brute-force protection, and credential permissions. Use when setting up a new...

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

Harden an OpenClaw Linux server with SSH key-only auth, UFW firewall, fail2ban brute-force protection, and credential permissions. Use when setting up a new...

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.4

Documentation

ClawHub primary doc Primary doc: SKILL.md 9 sections Open source page

Host Hardening

Secure a Linux server running OpenClaw.

Requirements

OS: Linux (Ubuntu/Debian โ€” adjust package commands for other distros) Privileges: Root or sudo required โ€” this skill modifies system-wide security config Pre-check: Verify you have SSH key-based access before disabling password auth โš ๏ธ All commands below modify system configuration. Confirm with the user before running each section. Do not run these automatically without explicit approval.

SSH โ€” Key-Only Auth

Disables password authentication. Ensure key-based SSH works first or you will be locked out. sed -i 's/^#*PermitRootLogin.*/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config sed -i 's/^#*PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config systemctl restart ssh

Firewall โ€” Deny All Except SSH

ufw default deny incoming ufw default allow outgoing ufw allow ssh yes | ufw enable Add more rules as needed (e.g. ufw allow 443 for HTTPS).

Fail2ban โ€” Brute-Force Protection

Installs fail2ban via apt (Debian/Ubuntu). Adjust for other package managers. apt-get install -y fail2ban systemctl enable --now fail2ban Default config protects SSH. For custom jails: /etc/fail2ban/jail.local.

OpenClaw Credentials

chmod 700 ~/.openclaw/credentials

OpenClaw Gateway Service (optional)

Creates a systemd service for auto-restart on reboot. Runs as root โ€” review the service file before enabling. cat > /etc/systemd/system/openclaw-gateway.service << 'EOF' [Unit] Description=OpenClaw Gateway After=network-online.target Wants=network-online.target [Service] Type=simple ExecStart=/usr/bin/env openclaw gateway Restart=always RestartSec=5 User=root WorkingDirectory=/root/.openclaw Environment=HOME=/root [Install] WantedBy=multi-user.target EOF systemctl daemon-reload && systemctl enable openclaw-gateway

Verify

ufw status # active, SSH allowed systemctl is-active fail2ban # active grep PasswordAuthentication /etc/ssh/sshd_config # no stat -c %a ~/.openclaw/credentials # 700 systemctl is-enabled openclaw-gateway # enabled

Lessons

On Ubuntu, SSH service is ssh not sshd AWS security groups provide network-level filtering but UFW is defense-in-depth Always verify key-based SSH access before disabling password auth The gateway service is optional โ€” only needed if OpenClaw should survive reboots Host Hardening v1.0 Author: ppiankov Copyright ยฉ 2026 ppiankov Canonical source: https://clawhub.com/skills/host-hardening License: MIT If this document appears elsewhere, the link above is the authoritative version.

Category context

Identity, auth, scanning, governance, audit, and operational guardrails.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs
  • SKILL.md Primary doc