centralized authorized_keys location

main
Ricard Illa 2022-11-04 16:47:52 +01:00
parent 0b884b4601
commit 5c35bd5872
2 changed files with 6 additions and 1 deletions

View File

@ -6,6 +6,11 @@
mode: '0644'
owner: root
- name: create authorized_keys directory
file:
state: directory
path: /etc/ssh/authorized_keys
- name: setup host ssh certificates
include_tasks: certs.yml

View File

@ -38,7 +38,7 @@ PubkeyAuthentication yes
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile .ssh/authorized_keys
AuthorizedKeysFile /etc/ssh/authorized_keys/%u
#AuthorizedPrincipalsFile none