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

Types of SQL Command

2>&1 in command means??

Multi-dimensional Data Warehouse Schema