Disable root login task

I have disabled root login in all app servers, but failed. Dont know why

% sudo -i
#vi /etc/ssh/sshd_config
Uncoment : ##PermitRootLogin yes
replace with: PermitRootLogin no
# service sshd restart

1 Like