Currently, $HOME/.ssh/authorized_keys will be overwritten periodically by central management system. But this is counter-intuitive from the expectation of the Filesystem Hierarchy Standard. A better approach would be putting it under /etc (Host-specific system configuration).
For example, use AuthorizedKeysFile in /etc/ssh/sshd_config:
# /etc/ssh/sshd_config
AuthorizedKeysFile /etc/ssh/%u/authorized_keys .ssh/authorized_keys
and put the centrally managed file in /etc/ssh/$USER/authorized_keys instead.
Currently,
$HOME/.ssh/authorized_keyswill be overwritten periodically by central management system. But this is counter-intuitive from the expectation of the Filesystem Hierarchy Standard. A better approach would be putting it under/etc(Host-specific system configuration).For example, use
AuthorizedKeysFilein/etc/ssh/sshd_config:# /etc/ssh/sshd_config AuthorizedKeysFile /etc/ssh/%u/authorized_keys .ssh/authorized_keysand put the centrally managed file in
/etc/ssh/$USER/authorized_keysinstead.