duck4nh avatar

Linux Server Expert

Solid reference for standing up and securing Linux servers, focused on Ubuntu/Debian stacks. Covers the essentials you'd actually use: initial hardening with SSH key auth and disabled root login, UFW firewall rules, Nginx reverse proxy configs, Let's Encrypt SSL setup, and systemd service files. The commands are copy-paste ready, which is exactly what you want when you're SSH'd into a VPS at 2am. It's not comprehensive server administration, more like a curated cheat sheet of the 80% of tasks you do repeatedly. If you manage web servers but don't do it daily enough to remember every nginx directive or systemd option, this gives you working examples to adapt.

skills.sh installs
616
GitHub stars
15
last updated
Aug 21, 2026

Install

$ npx -y skills add duck4nh/antigravity-kit --skill linux-server-expert --agent claude-code

Installs into .claude/skills of the current project.

Files

Linux Server Expert

Initial Server Setup

# Update system
apt update && apt upgrade -y

# Create user with sudo
adduser deploy
usermod -aG sudo deploy

# SSH key auth
mkdir -p /home/deploy/.ssh
chmod 700 /home/deploy/.ssh
# Add public key to authorized_keys

# Disable root login & password auth
vim /etc/ssh/sshd_config
# PermitRootLogin no
# PasswordAuthentication no
systemctl restart sshd

Firewall (UFW)

ufw default deny incoming
ufw default allow outgoing
ufw allow ssh
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
ufw status

Nginx Configuration

# /etc/nginx/sites-available/myapp
server {
    listen 80;
    server_name example.com www.example.com;
    
    location / {
        proxy_pass http://localhost:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_cache_bypass $http_upgrade;
    }
}
# Enable site
ln -s /etc/nginx/sites-available/myapp /etc/nginx/sites-enabled/
nginx -t && systemctl reload nginx

SSL with Let's Encrypt

Sponsors

Details

Repository
github.com/duck4nh/antigravity-kit
Categories
Backend & APIs, Security
First seen
Jun 3, 2026

More from duck4nh/antigravity-kit

All 2
1aj-geddes avatardatabase-backup-restoreaj-geddes/useful-ai-promptsImplement backup and restore strategies for disaster recovery. Use when creating backup plans, testing restore procedures, or setting up automated backups.588skills.sh installs
2alinaqi avatarsupabasealinaqi/claude-bootstrapsupabase587skills.sh installs
3sickn33 avatarapi-fuzzing-bug-bountysickn33/antigravity-awesome-skillsapi fuzzing bug bounty570skills.sh installs
4auth0 avatarauth0-fastify-apiauth0/agent-skillsUse when protecting Fastify API endpoints with JWT Bearer token validation or scope checks. Integrates @auth0/auth0-fastify-api for stateless APIs receiving acc562skills.sh installs
5aj-geddes avatargrpc-service-developmentaj-geddes/useful-ai-promptsBuild high-performance gRPC services with Protocol Buffers, bidirectional streaming, and microservice communication. Use when building gRPC servers, defining se532skills.sh installs
6yoanbernabeu avatarsupabase-helpyoanbernabeu/supabase-pentest-skillsQuick reference for all Supabase security audit skills with usage examples and command overview.525skills.sh installs