Having a number of hosts following the same naming scheme is good, defining them is repetitive and boring. Maybe we could patch SSH to achieve something like this. Take a look at an example for ssh-config:
Host myhost%02d
User lars
Hostname myhost$1.example.com
ssh myhost02 would be expanded and as a result would resolve to myhost02.example.com.
Comments
Show comments linear or threaded
Bernd replies:
published on 2008|10|16, 20:13hIf you have such a setup, I’ll suggest that you place “search example.com” in your /etc/resolv.conf to achieve a similar result. ;-)
Lars Strojny says:
published on 2008|10|16, 23:21hDoesn’t help much if you have various subnets with the same names like web*.foo.domain.com and web*.bar.domain.com.
Astro opines:
published on 2008|10|19, 15:04h.ssh/config can do Patterns already
Add comment