![cli](https://skayal.com/wp-content/uploads/2020/05/kisspng-computer-icons-command-line-interface-linux-system-command-line-icon-vector-5ab10e74cf4276.197344361521553012849.png)
05
Mar
Enable root login over SSH
Comments
- Login to your server as root.
- As the root user, edit the sshd_config file found in /etc/ssh/sshd_config:
vi /etc/ssh/sshd_config
- Add the following line to the file, you can add it anywhere but it’s good practice to find the block about authentication and add it there.
PermitRootLogin yes
- Save and exit the file.
- Restart the SSH server:
systemctl restart sshd
or
service sshd restart