/usr/portage

SSH configuration parameters 3

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 , , & three comments & no trackbacks

Trackbacks

Trackback specific URI for this entry

No Trackbacks

Comments

  1. Bernd says:
    published on October 16th 2008, 08:13:07 pm *

    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. ;-)

    Reply

  2. Lars Strojny says:
    published on October 16th 2008, 11:21:31 pm *

    Doesn’t help much if you have various subnets with the same names like web*.foo.domain.com and web*.bar.domain.com.

    Reply

  3. 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

Add a Comment & let me know what you think

Submitted comments will be subject to moderation before being displayed.