moul/assh

HostNames always come out commented

EugenMayer opened this issue · 3 comments

when i have this `~/.ssh/assh.yml

Hosts:
  myalias:
    HostName: bar
    User: me 

i get a commented out HostName when running assh config build

Host myalias
  User me
  # HostName: bar

Tested with 2.11 and 2.12 - running current stable manjaro. Thanks

I understood that this seem to be by design, so if one uses assh wrapper ssh -- those definitions are actually used. But this kind of is an issue for the portability, isn't it?

E.g. I'm not sure I want to use the wrapper, or it seems like it can be problematic. With the wrapper, the auto-completion does no longer work (used https://gist.github.com/ocean90/3e5da3c526c66144eab3a78b0101b2ec to fix it). I guess more of that can happen, could it?

Of course, the overall benefit of assh is huge, no doubt

I also want the hostname to not be commented, and it does not work for me even with the wrapper.
The reason is the alias is a valid hostname
e.g.
Host foo
HostName: a.b.c

Because foo.mydomain is valid, it tries to connect to foo.mydomain, but I want it to connect to a.b.c instead