3 ms·
Is there a way to set that in bulk so all hosts in your config send identities, but those not specified don't, without putting IdentityFile for every one?
by ars 11y ago
Is there a way to set that in bulk so all hosts in your config send identities, but those not specified don't, without putting IdentityFile for every one?
- azernik 11y agoYou can create a host block that matches multiple hosts: IdentitiesOnly yes Host first second third fourth IdentitiesOnly no If you then wanted to have per-host configs you'd have to create more host blocks, but at least this way the added overhead of "IdentitesOnly yes" doesn't grow too fast with the number of hosts involved.
- jlgaddis 11y agoUntested but you should also be able to use "Match" directives as well, assuming there's something in common you can match on, e.g.: Match Host *.example.com, 192.0.2.* IdentitiesOnly no