Main image
17th December
2008
written by Nick Anderson

I just wanted to make sure no one forgets that wildcards can be used in your .ssh/config. This can be extremely helpful. For example say you have 100 nodes that have a simple nameing scheme of nodexxxx. You can add the following into your ssh config and pre-poplulate settings.

Host node*
    User staffuser
    IdentityFile ~/.ssh/staff_key

That would cause any ssh connection matching node* to use the user staffuser and .ssh/staff_key as the ssh key. By the same token you could do this.

Host *.locallan.domin.com
    User me

This could be useful if you have networks of machines that hook into different authentication systems. Nothing groundbreaking by any means but its useful so dont forget about it.

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Reddit
  • Slashdot
  • TwitThis
Tags:

2 Comments

  1. 17/12/2008

    Nevermind. I am apparently blind :-)

  2. 17/12/2008

    I meant to prepend a stupid question to my previous comment, just so you know. :-)

    Great post. I didn’t know about this ability, but it’s really excellent (and handy).

Leave a Reply

To submit your comment, click the image below where it asks you to... Clickcha - The One-click Captcha

BLOGROLL

ARCHIVE