CESNET / netopeer2

NETCONF toolset
BSD 3-Clause "New" or "Revised" License
296 stars 187 forks source link

pubkey authentication for non system user #1418

Closed qupfer closed 1 year ago

qupfer commented 1 year ago

Hi,

if NP2SRV_SSH_AUTHORIZED_KEYS_ARG_IS_USERNAME is set, then there is no need that the netopeer client is a system user. But the current version fails, if the user does not exist in the user database.

This PR skips that, if NP2SRV_SSH_AUTHORIZED_KEYS_ARG_IS_USERNAME is set.

Kind regards Henning

michalvasko commented 1 year ago

Okay, can be merged.