Task 4: Disable Root Login

Hi, I disabled the root login as requested in the task, yet I failed when I submitted it which was strange to. Below are the steps i used;

  1. tony@stapp01 ~: sudo su
  2. root@stapp01 tony]: whomai
    root
  3. root@stapp01 tony]: cd /etc
  4. root@stapp01 etc] : cd ssh
  5. root@stapp01 ssh] :vi sshd.config
  6. then set PermitRootLogin to (no)
  7. saved changes with esc+:wq
  8. root@stapp01 ssh] systemctl restart sshd

I did the same for the other 2 app servers (i.e. Steve and Banner)


I will like to know why i failed this task please. Attached are my screen!

You have to remove hash(#) symbol before PermitRootLogin and restart sshd service.

PermitRootLogin no