[Bug 2731] .ssh/config: Host * overrides included files

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Sat Jun 24 15:30:06 AEST 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2731

Damien Miller <djm at mindrot.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |djm at mindrot.org

--- Comment #1 from Damien Miller <djm at mindrot.org> ---
I think the problem is that your configuration now is effectively:

> Host *
>  User userB
>  Include ~/.ssh/a_host

I.e. you're conditionally including the a_host file after you set
userB.

If you change the order to

> Include ~/.ssh/a_host
> 
> Host *
>  User userB

Then you should get the behaviour that you desire.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list