Host *
Common settings
Host wanted
Host-specific settings
Before https://github.com/Eugeny/russh/pull/306 common settings were ignored, but after - common settings were applied, yet config parser stops right on next Host section start, so settings I need were ignored instead.
This PR brings behavior closer to what openssh itself does - for requested host, it applies all the settings with maching glob, not only the first one.
PR https://github.com/Eugeny/russh/pull/306 broke russh config parsing for me.
My ssh config looks roughly like this:
Before https://github.com/Eugeny/russh/pull/306 common settings were ignored, but after - common settings were applied, yet config parser stops right on next
Host
section start, so settings I need were ignored instead.This PR brings behavior closer to what openssh itself does - for requested host, it applies all the settings with maching glob, not only the first one.