Step 1: Edit SSH Config
sudo nano /etc/ssh/sshd_configStep 2: Change PermitRootLogin
Find and set:
PermitRootLogin noStep 3: Save and Restart SSH
sudo systemctl restart sshdStep 4: Test with Sudo User
ssh username@YOUR_SERVER_IP -p PORT
sudo whoami⚠️ Ensure you have a working sudo user before disabling root login.