[Bug 2693] ssh: Include'ed host is not resolved by ssh

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Mar 15 18:39:28 AEDT 2017


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

Jakub Jelen <jjelen at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jjelen at redhat.com

--- Comment #1 from Jakub Jelen <jjelen at redhat.com> ---
There is a problem, that the semantics of Include is evaluated after
the Match block. This basically means that the `ssh-config/*.ssh` is
included only if the host matches `thtv.db?`

It is clearly communicated in the manual page for ssh_config:

> Include directive may appear inside a Match or Host block to perform conditional inclusion.

Your configuration files should look like below to include the file
unconditionally:

/home/pay/.ssh/config:
===========cut here==========
Include ssh-config/*.ssh
Host thtv.db?
    User pva
===========cut here==========

/home/pay/.ssh/ssh-config/thtv.ssh:
===========cut here==========
Host thtv.enc1
    Port 2249
    HostName 10.0.200.18
===========cut here==========

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list