3

SSH configuration parameters

published on 2008|10|14

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:13h
*

If 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:21h
*

Doesn’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


Textile-formatting allowed
E-Mail addresses will not be displayed and will only be used for E-Mail notifications
Pavatar/Gravatar/Favatar/MyBlogLog author images supported.

Submitted comments will be subject to moderation before being displayed.