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,,,,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!