Skip to main content
skill CX Codex

server-security-init-skill — Claude Code skill: install

server-security-init-skill — a Claude Code skill for securing fresh Ubuntu and Debian SSH servers. It guides key-based access setup, firewall rules, and staged SSH hardening.

no license 103 installs ★ 13 updated 2026-10-09

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add reason-machines/security-skills --skill server-security-init-skill -a claude-code
Open on GitHub

What server-security-init-skill does

The skill walks through an initial security setup for a fresh Ubuntu or Debian server reached over SSH. It helps check for a local SSH key or create one, add the public key to the server, then create a sudo user without root access. Next, it configures UFW and fail2ban, changes the SSH port, and checks that the new port accepts connections. On Debian 12+, it checks ssh.socket, which can keep SSH on the previous port. Server checks use ss -ltnp, sshd -T, systemctl, and ufw status. Access checks come before disabling existing login methods: public-key login must work first, followed by SSH and sudo access for the new user. Keep the old SSH session open until the connection on the new port has been verified.

What it helps with

  • set up SSH key access on a new server
  • create a sudo account without root access
  • configure inbound UFW rules
  • move SSH to a new port and check its listener
  • configure fail2ban to guard SSH against password guessing

Example prompts for the agent

  • Secure a fresh Ubuntu server that I can reach over SSH.
  • Set up key-based login and remove root access on this Debian server.
  • Configure UFW, fail2ban, and a new SSH port on the server.

How to install server-security-init-skill

1Skills CLI (Vercel)

npx skills add reason-machines/security-skills --skill server-security-init-skill -a claude-code

2Manually: put the files in place

~/.claude/skills/server-security-init-skill/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/server-security-init-skill/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about server-security-init-skill

How do I install server-security-init-skill in Claude Code?

Run npx skills add reason-machines/security-skills --skill server-security-init-skill -a claude-code. The skill file should be at ~/.claude/skills/server-security-init-skill/SKILL.md.

What does server-security-init-skill do?

It guides the staged hardening of a fresh Ubuntu or Debian SSH server, including key-based login, a sudo user, UFW, fail2ban, and an SSH port change.

What does server-security-init-skill need to work?

It needs SSH access to an Ubuntu or Debian server and a local SSH key, or confirmation to generate one. Key login and sudo access for the new account must be tested before old access methods are disabled.

Similar skills

All skills for Security →

From the same set129

The whole set →
fort-firewall-malware-analysis fort-firewall-malware-analysis helps detect fake repositories and malware disguised as the Fort Firewall utility. Useful when auditing open-source forks and suspicious download sources. CX Codex +1 114installs fsecure-internet-security-patch-activator-malware fsecure-internet-security-patch-activator-malware is a Claude Code skill with a malicious repository disguised as an F-Secure patch. It shows how to recognize fake activators and antivirus cracks. CX Codex +1 113installs fsecure-internet-security-malware-distribution fsecure-internet-security-malware-distribution — a warning skill: it dissects a fake F-Secure Internet Security repository and lists what to do if someone already downloaded the files. CX Codex +1 112installs macos-security-privacy-hardening macos-security-privacy-hardening — a skill for securing and hardening macOS systems following enterprise security standards. Sets up full-disk encryption, firewall, firmware passwords, and disables telemetry. CX Codex +1 111installs macos-security-hardening The macos-security-hardening skill guides you through setting up full-disk encryption, configuring firewalls, securing DNS, and disabling telemetry on macOS. Use it to protect your system against local access, data theft, and tracking. CX Codex +1 107installs macos-security-and-privacy-guide macos-security-and-privacy-guide is a Claude Code skill with terminal steps for securing macOS, including FileVault, firewall rules, encrypted DNS, and telemetry controls. CX Codex +1 104installs awesome-ai-security-tools-guide The awesome-ai-security-tools-guide Claude Code skill finds tools from a curated AI security catalog. It responds to requests about LLM testing, agent protection, or security scanners. CX Codex +1 103installs vulnhunter-security-scanner The vulnhunter-security-scanner Claude Code skill searches source code for vulnerabilities and tests whether an attack could work. It activates on requests to scan a codebase or find exploitable bugs. CX Codex +1 101installs

Project sponsors

Companies that keep this analytics open