Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 24, 2012, 8:38 am
rate this thread
host a b c d
so "ssh a" will get me to a.example.com, "ssh b" to b.example.com etc. Now I
have machines with the same names in another domain (say example.net), but
I'd like to use the same configuration pattern as above, perhaps naming the
hosts like "anet", "bnet" etc. or something like that. However, I can't do
host anet bnet cnet dnet
because %h will be replaced by "anet", "bnet" etc. and those machines don't
exist (they are a.example.net b.example.net etc.). This forces me to do
etc. which will rapidly become tedious if there are many machines. Is there
a way to somehow mangle what ends up in %h? Or of course, another way to
get what I'm trying to do?
I can of course generate the config file programmatically, but I'd like to
make sure that I'm not missing something.
Thanks in advance.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — Newest thread in » Secure Shell Forum