Task 4 : Disable root login

Hello,

I Have an issue with task 4. I disabled root login, use Permitrootlogin with no. But had this error :

root login is not disabled on App Server 1
root login is not disabled on App Server 2
root login is not disabled on App Server 3

Regards,
Denis

Hi Denis,

Its case sensitive PermitRootLogin no

Hello @kodekloud-support3, i writted with the upper case. I only uncommented the line and set to no.

Is there a bug with this task ?

1 Like

I am also facing the same issue though followed all correct steps but failed.

I had a failure on stapp01 even though I set it exactly the same for stapp02 and stapp03

Hi!

I uncomment PermitRootLogin and change value to “no” and get failed in this task!!! Really? What else I must do?

1 Like

Hi Denden,

We just reviewed your answer and found that you missed to restart sshd service hence your answer was marked as failed.

Thanks
Inderpreet

Hi Jdev,

We just reviewed your answer and also as per screenshot you shared, we found that on App Server 1 you have made the required changes in ssh_config file instead of sshd_config file. Hence your answer was marked as failed.

Thanks
Inderpreet

Hello,

Could you please share your email ID, we will review your answer from our end to identify the root cause of failure.

Thanks
Inderpreet

Got it, Thanks, i will correct it next time around.