How can I provide the authorized_keys path in sshd that allows normal users, system users, and a root user?
6
votes
2
answers
28992
views
Is it possible to set the
AuthorizedKeysFile
setting explicitly such that it covers the following cases:
1. standard user under /home/%u/.ssh/authorized_keys
1. system user under /var/lib/%u/.ssh/authorized_keys
1. root user under /root/.ssh/authorized_keys
My question is, is there a variable that contains the user directory as specified in the Name Service Switch ?
Asked by Jonathan Komar
(7034 rep)
Dec 22, 2019, 02:08 PM
Last activity: Jun 19, 2025, 07:31 AM
Last activity: Jun 19, 2025, 07:31 AM