━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔐 STEP – ENABLE ROOT LOGIN OVER SSH (Debian 11/12) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1️⃣ Open SSH configuration file: ──────────────────────────────────── sudo apt install nano -y sudo su nano /etc/ssh/sshd_config 2️⃣ Change the following line: ──────────────────────────────────── FROM: #PermitRootLogin prohibit-password OR PermitRootLogin no TO: PermitRootLogin yes 💡 Tip: If the line does not exist, just add: PermitRootLogin yes 3️⃣ OR do it automatically via terminal: ──────────────────────────────────── sudo sed -i 's/^#\?PermitRootLogin .*/PermitRootLogin yes/' /etc/ssh/sshd_config 4️⃣ Restart the SSH service: ──────────────────────────────────── sudo systemctl restart sshd 5️⃣ Confirm the change was applied: ──────────────────────────────────── grep -i "PermitRootLogin" /etc/ssh/sshd_config ✅ Done! Root login via SSH is now enabled. Make sure the root account has a password set.