Re: Config parser doesn't accept multiple IdentityFile lines

2021-01-28 Thread Jakub Jelen
On 1/28/21 3:20 PM, Tilo Eckert wrote: This workaround does not work either: IdentityFile /path/to/id Host somehost     IdentityFile /path/to/other_id The host-specific IdentityFile is ignored as well if a global one is present. The seen flags should probably be reset when encountering a

Re: Config parser doesn't accept multiple IdentityFile lines

2021-01-28 Thread Tilo Eckert
This workaround does not work either: IdentityFile /path/to/id Host somehost IdentityFile /path/to/other_id 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

Config parser doesn't accept multiple IdentityFile lines

2021-01-28 Thread Tilo Eckert
Hi, ~/.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