Lab Issues: Disable SSH Root Login task not passing

Hi KodeKloud Community,

I’m facing an issue with the Disable SSH Root Login lab.

I completed the task correctly and verified the configuration multiple times. The app server has “PermitRootLogin no” configured, and I restarted the SSH service, but the lab still fails on the app server.

I have already attempted this lab 4 times and still get the same result.

Has anyone faced this issue before, or could this be a lab validation problem?

I’m attaching screenshots for reference. Thank you!


You need to restart sshd service with:
sudo systemctl restart sshd

This is why.

It worked , Thank you for your suggestion.