1. Login to your server as root.
2. As the root user, edit the sshd_config file found in:
Code: Select all
/etc/ssh/sshd_config:
Code: Select all
vim /etc/ssh/sshd_config
Code: Select all
PermitRootLogin yes
6. Restart the SSH server:
Code: Select all
systemctl restart sshd
Code: Select all
service sshd restart