Securing SSH - jude-lindale/Wiki GitHub Wiki

/etc/ssh/sshd_config:
        PermitRootLogin no #disabled

 /etc/init.d/sshd restart

OR

# vi /etc/ssh/sshd_config

  PermitRootLogin no

 # systemctl restart sshd

 # service sshd restart

 # /etc/init.d/ssh restart

Then run

  # cat /var/log/secure | grep "not met"

look at the uid