[How To] Enable Root Login via SSH on Fedora
|To enable root login via SSH on Fedora Linux using the Vim editor, you will need to perform the following steps:
- Open Terminal from Applications -> System Tools, or by pressing the CTRL + ALT + T keys
-
Use the command sudo su to switch to the root user.
sudo su
-
Use the command to open the SSH configuration file.
vim /etc/ssh/sshd_config
-
Press the i key to enter into insert mode, locate the line that begins with PermitRootLogin and change the value from ‘no’ to ‘yes’.
-
Press Esc key then type :wq to leave the insert mode and save changes.
-
Use the command to restart the SSH service.
systemctl restart sshd
-
You should now be able to log in as the root user using SSH.
Note: It is not recommended to enable root login on Fedora or any other system, as it is a security risk. Instead, you should use a non-root user and use the sudo command to perform actions that require root privileges.