ssh-hardening

Community

Harden SSH with keys and non-root users.

Authormikr13
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Harden SSH access on VPS servers by eliminating root login, enabling SSH key authentication, and deploying non-root sudo users to prevent unauthorized access.

Core Features & Use Cases

  • Create non-root users with sudo privileges and verify sudo access.
  • Generate and deploy SSH key-based authentication, disable password authentication, and harden sshd_config.
  • Safe operational practices: test configurations in a new session before applying changes, and rollback if needed.
  • Use cases: setting up a fresh VPS with secure SSH, or auditing and hardening an existing server.

Quick Start

Generate an SSH key pair on your local machine, copy the public key to the server, and run the hardening steps to disable password authentication and enforce key-based access.

Dependency Matrix

Required Modules

None required

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: ssh-hardening
Download link: https://github.com/mikr13/secure-server-setup-skills/archive/main.zip#ssh-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 223,000+ vetted skills library on demand.