Centos 6.4 forbid Root account remote login by ssh
For safety thinking, in production environment need forbid root accout remote login by ssh, usually will use one random normal account for login and switch to root after login. This topic show how to forbid root account remote login by ssh
{ 1. edit /etc/ssh/sshd_config }
vi /etc/ssh/sshd_config
PermitRootLogin no
{ 2. restart sshd service}
service sshd restart
Leave Comment