Running sshd with the -ddd flags to get a bit more information, I can see that the server is including the requested file. Indeed, server behaviour is almost identical between the two scenarios (included or inline) until it executes the Match statement that is the contents of my included file or else is inlined into sshd_config.
Here is where it diverges: On both sides, I see this in the lead-up to the divergence: debug3: Trying to reverse map address 1.2.3.4. debug2: parse_server_config_depth: config reprocess config len 1208 debug2: parse_server_config_depth: config /etc/ssh/sshd_config.d/sftp_users.conf len 182 debug3: checking match for 'Group sftp_users' user user1 host ... debug1: user user1 matched group list sftp_users at line 1 debug3: match found (the line number and length are different in the two cases) At this point they diverge. In the version that has inlined the file contents, I see debug3: reprocess config:54 setting ... debug3: reprocess config:55 setting ... debug3: reprocess config:56 setting ... debug3: reprocess config:57 setting ... debug3: reprocess config:58 setting PasswordAuthentication yes debug3: reprocess config:59 setting ... Those config statements correspond to the contents of my Match block. They are only processed in the inline version. Then both versions say debug3: auth2_setup_methods_lists: checking methods and then again, they differ: (include) debug1: authentication methods list 0: publickey (inline) debug1: authentication methods list 0: password And this is the point: the Match (which was found) is supposed to say that for this class of user connecting, we should accept passwords rather than public keys and only permit sftp. So the result is that both versions recognise the Match condition, but only the inlined version actually executes the Match block. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1911014 Title: include-config-dir from sshd not recognized To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/rkhunter/+bug/1911014/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs