How to Enable Root Login Via SSH on Fedora 39

To enable root login via SSH on Fedora 39, follow these steps.

Step 1 : Ensure that SSH is installed and running. Use the following command to check its status:

Step 2 : Open the SSH daemon configuration file using a text editor, such as nano or vim:

Step 3 : Modify PermitRootLogin

- Locate the line containing "PermitRootLogin" and remove the '#' at the beginning of the line. Change it to:

Save the file and exit the text editor.

Step 4 : Restart the SSH service to apply the changes:

Step 5 : Connect to the server using the root account:

Congratulations, you have successfully enabled root login via SSH on your Fedora 39 system.