How to Secure Proxmox VE After Installation - Complete Guide
Question: How do I secure my Proxmox server after install?
Answer: Follow these essential security steps
How to Update System Immediately
Step 1: Add Community Repository
# Disable enterprise repo
sed -i 's/^deb/#deb/' /etc/apt/sources.list.d/pve-enterprise.list
# Add community repo
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-community.listStep 2: Update
apt update && apt full-upgrade -y
rebootHow to Secure SSH Access
Step 1: Disable Root Login
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
systemctl restart sshdStep 2: Use SSH Keys
# Generate key on your computer
ssh-keygen -t ed25519
# Copy to server
ssh-copy-id admin@your-server-ipHow to Enable Firewall
Step 1: Install UFW
apt install ufw -yStep 2: Configure Rules
ufw default deny incoming
ufw default allow outgoing
ufw allow 8006/tcp # Proxmox Web
ufw allow 22/tcp # SSH
# Enable
ufw enableHow to Enable 2FA
Step-by-Step (Web UI)
- Go to Datacenter → Users
- Select user → 2FA tab
- Click Add → TOTP
- Scan with authenticator app
- Enter code to enable
Keywords
security ssh firewall 2fa how-to hardening