Re: Config parser doesn't accept multiple IdentityFile lines
- Subject: Re: Config parser doesn't accept multiple IdentityFile lines
- From: Tilo Eckert <tilo.eckert@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 28 Jan 2021 15:20:14 +0100
- To: libssh@xxxxxxxxxx
This workaround does not work either:
The host-specific IdentityFile is ignored as well if a global one is
present. The seen flags should probably be reset when encountering a
"Host" or "Match" keyword (in addition to the suggestion below).
Am 28.01.21 um 14:32 schrieb Tilo Eckert:
~/.ssh/config can contain multiple lines with the "IdentityFile" keyword
to add multiple keys to try in public key authentication.
The libssh config parser ignores all but the first IdentityFile line,
resulting in failed authentication if the key that is accepted by the
server is not the first.
The issue seems to be the "seen" array in ssh_config_parse_line() which
already has Host, Match and Include as exceptions. Probably just need to
Archive administrator: email@example.com