My goal is to put in some common properties for a subset of the hosts in the config. The following two examples are close except for replacing a Host section with a Match section and destination host aliases.
The first example here works as intended, if I'm matching against the nickname. However, my goal is to apply the special parameters to every host on a particular subnet. Wildcarding the Host aliases isn't actually possible because there's no uniformity to the names, and some have multiple aliases.
Host *
ServerAliveInterval 240
AddressFamily inet
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
Host server*
IdentityFile ~/.ssh/default_id_rsa
User remoteMe
RequestTTY force
RemoteCommand bash
ProxyJump myproxy
Host myproxy
Hostname 10.1.2.3
User meOnProxy
IdentityFile ~/.ssh/meOnProxy_id_rsa
Host server01
Hostname 192.168.1.11
Host server02
Hostname 192.168.1.12
Host otherserver
Hostname 10.1.15.155
User meOnOtherserver
IdentityFile ~/.ssh/other_id_rsa
Hoever, I'd like to key in on the Hostname, not the Host, but the following doesn't work, the match is ignored and it hangs trying to lookup the host directly (the JumpProxy and other parameters ignored). Please help me out with Match syntax.
Host *
ServerAliveInterval 240
AddressFamily inet
ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes
Match host 192.168.1.*
IdentityFile ~/.ssh/default_id_rsa
User remoteMe
RequestTTY force
RemoteCommand bash
ProxyJump myproxy
Host myproxy
Hostname 10.1.2.3
User meOnProxy
IdentityFile ~/.ssh/meOnProxy_id_rsa
Host firstserver proc11
Hostname 192.168.1.11
Host servertwo proc12
Hostname 192.168.1.12
Host otherserver
Hostname 10.1.15.155
User meOnOtherserver
IdentityFile ~/.ssh/default_id_rsa