PermitRootLogin no AND yes in sshd_config

hi, I’ve just installed YNH on my contabo VPS … amazing work!

I just took a look in /etc/ssh/sshd_config
where I read:

Using regular users in combination with /bin/su or /usr/bin/sudo ensure a clear audit track.
LoginGraceTime 120
PermitRootLogin no

and further down:

Match Address 192.168.0.0/16,10.0.0.0/8,172.16.0.0/12,169.254.0.0/16,fe80::/10,fd00::/8
PermitRootLogin yes

It didn’t seem normal to me, so I wanted to let you know.
Correct me if i’m wrong, please!

Yes, there’s a comment explaining why this is here … yunohost/sshd_config at dev · YunoHost/yunohost · GitHub

1 Like

thanks @Aleks!
I didn’t quite understand the preceding text
but now I guess when LDAP is down, root access is granted again …
all right!