Using the Host declaration properly



I am trying to construct an ssh_config that behaves differently for:
- local network non-FQDN hosts
- local network FQDN hosts
- non-local (=> FQDN) hosts

So I have:

Host *
....local non-FQDN config...

Host *.icequake.net
....local FQDN config...

Host *.*
....non-local config...

But ssh seems to take "Host *" and run with it; it matches every host,
even if there is a more specific match elsewhere.

I could not find a way to specify a network in the usual notation, such
as Host 1.2.3.4/31, since this would be the optimal thing to do in this
case.

Any suggestions?

.



Relevant Pages