How to Enable Root Login Via SSH on Ubuntu 23.04

To enable root login via SSH on Ubuntu 23.04, follow these steps.

Step 1 : Enable the Root Account

Step 2 : Edit sshd_config

Step 3 : Uncomment and set PermitRootLogin to yes

Find the line:

Change it to:

Step 4 : Restart SSH

Step 5 : Test Connect

Congratulations! You have successfully enabled root login via SSH on your Ubuntu 23.04 system.