Which two actions are the required steps to prevent: non-root ssh access to the system?
A.
Ensuring that /etc/pam.d/sshd includes:
account sufficient pam_nologin.so
B.
Create the /etc/nologin/login.deny file containing a single line +all
C.
Creating the /etc/nologin.allow file containing a single line root
D.
Creating the /etc/nologin file
E.
Ensuring that /etc/pam.d/sshd includes:
account requiredpam_nologin.so
D,E
D,E is correct
more explanation in Q36