━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 🔐 STEP – ENABLE ROOT LOGIN OVER SSH (Ubuntu) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1️⃣ Open SSH configuration file: ──────────────────────────────────── sudo su nano /etc/ssh/sshd_config 2️⃣ Change the following line: ──────────────────────────────────── FROM: #PermitRootLogin prohibit-password 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 prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config 4️⃣ Restart the SSH service: ──────────────────────────────────── sudo systemctl restart ssh 5️⃣ Confirm the change was applied: ──────────────────────────────────── grep -i "rootlogin" /etc/ssh/sshd_config ✅ Done! You can now log in as root via SSH (make sure root has a password).