Linux - CentOS 7 - Enable Root Login via SSH

Introduction

By default, the login root via SSH is disabled, follow the instruction to allow it.

Edit /etc/ssh/sshd_config

1
vi /etc/ssh/sshd_config

Uncomment the line :

1
PermitRootLogin yes

Press Echap then type :wq & Press Enter

To finish :

1
systemctl restart sshd