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.
Filed under Administration, Bowl Of Cherries, SSH & three comments & no trackbacks
Trackback specific URI for this entry
Bernd says:
published on October 16th 2008, 08:13:07 pmIf you have such a setup, I’ll suggest that you place "search example.com" in your /etc/resolv.conf to achieve a similar result. ;-)
Reply
Lars Strojny says:
published on October 16th 2008, 11:21:31 pmDoesn’t help much if you have various subnets with the same names like web*.foo.domain.com and web*.bar.domain.com.
Reply
Astro reckons:
published on October 19th 2008, 03:04:47 pm.ssh/config can do "Patterns":http://www.openbsd.org/cgi-bin/man.cgi?query=ssh_config&sektion=5#PATTERNS already
Reply