moul/assh

HostName fallback?

milkpirate opened this issue · 0 comments

Hey,

I would like to have multiple HostNames and let assh check one after another to connect to. If one in the array fails, it should try the next given name automatically. Pretty much like the Gateway fallback logic but simply with different HostNames.

hosts:
  some-server:
    HostName:
      - 192.168.191.10
      - some-server
      - some.domain.name

So assh should do something like ssh 192.168.191.10 || (ssh some-server || ssh some.domain.name) automatically. Is that possible? Or addable without too much hazzle?