Logo

How to Enable Root Login Via SSH on Fedora 39

Dec 07, 2023

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:

sudo systemctl status sshd

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

sudo nano /etc/ssh/sshd_config

Step 3 : Modify PermitRootLogin

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

PermitRootLogin yes

Save the file and exit the text editor.

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

sudo systemctl restart sshd

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

ssh root@your_server_ip

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

Recommended