Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HostNames always come out commented #453

Open
EugenMayer opened this issue Oct 21, 2021 · 3 comments
Open

HostNames always come out commented #453

EugenMayer opened this issue Oct 21, 2021 · 3 comments

Comments

@EugenMayer
Copy link

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

@EugenMayer
Copy link
Author

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

@paulhybryant
Copy link

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

@gt-fm-4562
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants