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
npx skills add reason-machines/security-skills --skill server-security-init-skill -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/server-security-init-skill/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/server-security-init-skill/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill server-security-init-skill -a codex2Manually: put the files in place
.agents/skills/server-security-init-skill/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill server-security-init-skill -a cursor2Manually: put the files in place
.cursor/skills/server-security-init-skill/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/security-skills skills/server-security-init-skill2Manually: put the files in place
.github/skills/server-security-init-skill/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill server-security-init-skill -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/security-skills --path skills/server-security-init-skillManually: put the files in place
.devin/skills/server-security-init-skill/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/security-skills --skill server-security-init-skill -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.