restricting root ssh access works perfect in centos 6 but using the same method fails on centos 7. what are we doing wrong? an interesting point is that in our centos 6s we have stated that only our defined user is permitted in sshd_config:
AllowUsers OurUser
and others are not permitted. but in centos 7s we have to permit root too. otherwise neither root nor our user is allowed to login. i have checked the sudoers file many times and it seems ok.
OurUser ALL=(ALL) NOPASSWD: ALL
any clues?