2016-12-13 10:24:40 0 Comments Linux Boy.Lee

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