Error - 'root' login is not disabled on App Server 1 ( Day3 - Disable Root SSH Access - 100 Days of DevOps)

Hi All,

I disabled the root ssh login on all three app servers but I am getting error that ‘root’ login is not disabled on App Server 1 when I checked the answers.

Hi @bdahiya

After updating the sshd configuration, you must restart the SSHD service on all App Servers for the changes to take effect.

That could be the reason for the failure.

seems like a bug, even i did for all servers but its showing not done for one user.

Please try this solution and see if it works for you.

Hi @Santosh_KodeKloud

Thank you very much. Yes, this issue not seen after restarting the sshd service on all App Servers for the changes to take effect.

#sudo systemctl restart sshd.service

Hi @rob_kodekloud

Thank you very much. Issue resolved after restarting the sshd service on all App Servers after making the change in sshd config file.

Hi @ramusureddy22

Thank you. This issue resolved after restarting sshd service.

Run below commands on all App Servers after making changes in sshd config file.

#sudo systemctl restart sshd.service