vps-security-hardening

Community

Automate VPS security hardening end-to-end.

Author2670044605
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Automates the end-to-end hardening of virtual private servers by applying best practices via SSH, reducing manual configuration and human error.

Core Features & Use Cases

  • Create a restricted sudo user and disable root password login.
  • SSH hardening for custom ports and key-based authentication.
  • Install and configure Fail2ban and UFW firewall.
  • Optional SSH login notifications and Docker awareness.
  • Supports Ubuntu 22.10-23.10 socket activation vs systemd, enabling reproducible provisioning.

Quick Start

Run the hardened script with your VPS IP, root password, new user, new user password, and the desired SSH port to perform the automated hardening workflow.

Dependency Matrix

Required Modules

sshpass

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: vps-security-hardening
Download link: https://github.com/2670044605/agent-skills-hub/archive/main.zip#vps-security-hardening

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.