Prevent root-login on CentOS

1. Go to folder SSH

> cd /etc/ssh

2. Edit file SSH configuration

> vi sshd_config

3. Search word PermitRootLogin

> /PermitRootLogin

3. Remove # and disable PermitRootLogin

> PermitRootLogin no

4. Restart SSH service

> service sshd restart


DONE!!😉

Comments

Popular posts from this blog

MySQL Function: Thai months to String

2>&1 in command means??

Recommended video screen recorder (on Window, Linux, Andriod)