In your ssh config is it possible to have one host entry for multiple machines on the same domain

Posted by Joshua Olson on Super User See other posts from Super User or by Joshua Olson
Published on 2011-12-14T20:47:52Z Indexed on 2013/10/17 16:06 UTC
Read the original article Hit count: 219

Filed under:
|

I'd like to be able to do something like

Host *
    HostName *.mydomain.com
    ...

So I can type something like

ssh test
ssh ci
ssh dev

Instead of having to type

ssh test.mydomain.com
ssh ci.mydomain.com
ssh dev.mydomain.com

Right now I have separate entries for each one, but we have dozens of machines, so I'd rather have a default rather than have to duplicate everything so many times.

© Super User or respective owner

Related posts about ssh

Related posts about hosts