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

2>&1 in command means??

MySQL Function: Thai months to String

Ruby on Rails with PosgreSQL : Basic tutorial