100 days of DevOps Day 3

Hi all,

I’m attempting day 3 of the DevOps challenge where I’m supposed to disable direct root login on all app servers of stratos datacenter. To do this task, I have been disabling PermitRootLogin field from the sshd_config file. This task seems to be failing on App server 1. is it a bug or I’m doing it incorrectly? Please find the attached screenshot

The setting looks right to me, but you also need to restart the sshd server:

sudo systemctl restart sshd

This of course needs to be done on all 3 app servers.

Hi, I found the problem. It seems that I was not restarting the sshd service for the changes to take place. Restarting the service helped. Thanks!

1 Like

This is why.