OpenSSH Server: can I split the server configuration into multiple files?

Solution 1:

Yes if your sshd version is recent enough.

https://www.openssh.com/txt/release-8.2

Other New Features

  • sshd(8): add an Include sshd_config keyword that allows including
    additional configuration files via glob(3) patterns. bz2468

Free warning: Unlike most config includes you want the sshd include at the top of your file. The FIRST time a keyword is used wins unlike most conf.d includes where the latest wins.