canonical / charm-local-users

A subordinate charm for creating and managing local user accounts and groups on principal units.
Apache License 2.0
0 stars 4 forks source link

Add support for alternative location of the public key (not $HOME/.ssh/authorized_keys) #6

Closed jneo8 closed 11 months ago

jneo8 commented 11 months ago

When using sshd configurations that are not the default (for example, when using userdir-ldap [0]), the intended public key location might be different from the standard $HOME/.ssh/authorized_keys.

In those cases the charm configures the users as usual, but remote sessions don't work because of the missing file with the public keys. It would be useful to be able to configure the location of the file, for example: /etc/ssh/user-authorized-keys/$USER, while keeping the default behaviour if no special configuration is provided.

[0] https://charmhub.io/userdir-ldap


Imported from Launchpad using lp2gh.

jneo8 commented 11 months ago

(by mertkirpici) This feature is included in rev15 of the local-users charm. It is in the candidate channel.