TL;DR: I can see no way to install a /etc/ssh/ssh_known_hosts file that survives Fangtooth’s nightly middleware regeneration run.
My installation uses /etc/ssh/ssh_known_hosts to centrally administer ssh host signatures, to make it less likely that a user will “just click allow” on a rogue server. It turns out that TrueNAS Fangtooth considers this file “unexpected” and removes it when it regenerates the ssh configuration - every night.
The ssh configuration statement to set this is GlobalKnownHostsFile - in ssh_config (client side), not sshd_config. There seems to be no way to add /etc/ssh/ssh_config statements through the System/ssh UI.
While I can run a nightly cron job to restore /etc/ssh/ssh_known_hosts, that’s obviously not how the middleware is intended to run. What facility or trickery am I missing to solve this cleanly?