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
![How to Install Fedora Server 39](https://api.devtutorial.io/uploads/2023-12-07/6571b52af2f28.small.jpg)
Dec 07, 2023
![How to update Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/6571ce6d478d6.small.jpg)
Dec 07, 2023
![How To Install FirewallD on Fedora 39](https://api.devtutorial.io/uploads/2023-12-03/656c5e6d5c0d0.small.jpg)
Dec 03, 2023
![How to Configure SELinux on Fedora 39](https://api.devtutorial.io/uploads/2023-12-06/6570459a27333.small.jpg)
Dec 06, 2023
![How to manage network interfaces on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/6571f4624d0d2.small.jpg)
Dec 07, 2023
![How to Configure Static IP Address on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/65720e8d2540d.small.jpg)
Dec 07, 2023
![How to Enable Root Login Via SSH on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/6571f1e8011af.small.jpg)
Dec 07, 2023
![How to Enable SSH Password Login on Fedora 39](https://api.devtutorial.io/uploads/2023-12-08/65728fdf77aec.small.jpg)
Dec 08, 2023
![How to Set or Change Hostname on Fedora 39](https://api.devtutorial.io/uploads/2023-12-08/6572928b43561.small.jpg)
Dec 08, 2023
![How to Change Swap (ZRAM) Size on Fedora 39](https://api.devtutorial.io/uploads/2023-12-08/65729c52bab44.small.jpg)
Dec 08, 2023
![How to Install and Configure Apache on Fedora 39](https://api.devtutorial.io/uploads/2023-12-05/656ebc1bce020.small.jpg)
Dec 05, 2023
![How to set up Apache Virtual Host on Fedora 39](https://api.devtutorial.io/uploads/2023-12-05/656f0f7bcb737.small.jpg)
Dec 05, 2023
![How to Install PHP 8.2 for Apache on Fedora 39](https://api.devtutorial.io/uploads/2023-12-05/656f3599367b5.small.jpg)
Dec 05, 2023
![How To Install MariaDB on Fedora 39](https://api.devtutorial.io/uploads/2023-12-04/656dced2b8cf1.small.jpg)
Dec 04, 2023
![How To Install WordPress with LAMP on Fedora 39](https://api.devtutorial.io/uploads/2023-12-06/656fef16abdfb.small.jpg)
Dec 06, 2023
![How to Install Nginx on Fedora 39](https://api.devtutorial.io/uploads/2023-12-03/656c6eda47701.small.jpg)
Dec 03, 2023
![How to Set Up Nginx Server Blocks on Fedora 39](https://api.devtutorial.io/uploads/2023-12-03/656c7720825d4.small.jpg)
Dec 03, 2023
![How to Install PHP 8.2 for Nginx on Fedora 39](https://api.devtutorial.io/uploads/2023-12-04/656d8d48328e8.small.jpg)
Dec 04, 2023
![How To Install WordPress with LEMP on Fedora 39](https://api.devtutorial.io/uploads/2023-12-04/656dfe3e72de4.small.jpg)
Dec 04, 2023
![How to Install Node.js on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/65717c036e2be.small.jpg)
Dec 07, 2023
![How To Install NVM on Fedora 39](https://api.devtutorial.io/uploads/2023-12-08/65731861a9ce4.small.jpg)
Dec 08, 2023
![How to Install Yarn on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/657184da174d0.small.jpg)
Dec 07, 2023
![How to Install PM2 on Fedora 39](https://api.devtutorial.io/uploads/2023-12-08/65731b8f63300.small.jpg)
Dec 08, 2023
![How to Deploy a react app using PM2 on Fedora 39](https://api.devtutorial.io/uploads/2023-12-08/65731d678698e.small.jpg)
Dec 08, 2023
![How to Setup SFTP Server on Fedora 39](https://api.devtutorial.io/uploads/2023-12-10/65755944eabd8.small.jpg)
Dec 10, 2023
![How to Install vsftpd FTP Server on Fedora 39](https://api.devtutorial.io/uploads/2023-12-10/6575c365a472c.small.jpg)
Dec 10, 2023
![How to Install PHP 7.4 on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/65715c3fb418f.small.jpg)
Dec 07, 2023
![How to Install PHP 8.0 on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/65715d2924972.small.jpg)
Dec 07, 2023
![How to Install PHP 8.1 on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/65715dc808e4c.small.jpg)
Dec 07, 2023
![How to Install PHP 8.2 on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/65715a2d373dd.small.jpg)
Dec 07, 2023
![How to Install PHP 8.3 on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/657145e40625b.small.jpg)
Dec 07, 2023
![How To Install Docker on Fedora 39](https://api.devtutorial.io/uploads/2023-12-12/657826fd50702.small.jpg)
Dec 12, 2023
![How to Install and Use Podman on Fedora 39](https://api.devtutorial.io/uploads/2023-12-12/65781ae0a8473.small.jpg)
Dec 12, 2023
![How to Install nano on Fedora 39](https://api.devtutorial.io/uploads/2023-12-07/6571eab099be6.small.jpg)
Dec 07, 2023
![How to Install wget on Fedora 39](https://api.devtutorial.io/uploads/2023-12-06/6570af5d5ad1f.small.jpg)
Dec 06, 2023
![How to Install neofetch on Fedora 39](https://api.devtutorial.io/uploads/2023-12-06/6570b19b0f60f.small.jpg)
Dec 06, 2023
![How to install Zip or Unzip Files on Fedora 39](https://api.devtutorial.io/uploads/2023-12-12/65784069483d6.small.jpg)
Dec 12, 2023
![How to Install and Use rsync on Fedora 39](https://api.devtutorial.io/uploads/2023-12-12/657842718f710.small.jpg)
Dec 12, 2023
![How To Install Elasticsearch on Fedora 39](https://api.devtutorial.io/uploads/2023-12-12/65785459ab986.small.jpg)
Dec 12, 2023
![How to Install Usermin on Fedora 39](https://api.devtutorial.io/uploads/2023-12-12/65786a6101f77.small.jpg)
Dec 12, 2023
![How to Install Webmin on Fedora 39](https://api.devtutorial.io/uploads/2023-12-13/657927e2632bd.small.jpg)
Dec 13, 2023
![How To Install Memcached on Fedora 39](https://api.devtutorial.io/uploads/2023-12-13/6579d3a403118.small.jpg)
Dec 13, 2023
![How to Install RabbitMQ on Fedora 39](https://api.devtutorial.io/uploads/2023-12-13/6579d9c726db7.small.jpg)
Dec 13, 2023