To enable root login via SSH on your Ubuntu 24.04 system, follow the steps below:
Step 1 : Enable the Root Account:
Step 2 : Edit the sshd_config file:
Step 3 : Find the line "PermitRootLogin" in the file and remove the '#' at the beginning of the line if it's commented out. Change the value to "yes" to allow root login:
Step 4 : Restart the SSH service to apply the changes:
Step 5 : Test the SSH connection to verify that root login is enabled:
Congratulations! You have successfully enabled root login via SSH on your Ubuntu 24.04 system.