centralized authorized_keys location
parent
0b884b4601
commit
5c35bd5872
|
@ -6,6 +6,11 @@
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
owner: root
|
owner: root
|
||||||
|
|
||||||
|
- name: create authorized_keys directory
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: /etc/ssh/authorized_keys
|
||||||
|
|
||||||
- name: setup host ssh certificates
|
- name: setup host ssh certificates
|
||||||
include_tasks: certs.yml
|
include_tasks: certs.yml
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ PubkeyAuthentication yes
|
||||||
|
|
||||||
# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
|
# 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
|
# but this is overridden so installations will only check .ssh/authorized_keys
|
||||||
AuthorizedKeysFile .ssh/authorized_keys
|
AuthorizedKeysFile /etc/ssh/authorized_keys/%u
|
||||||
|
|
||||||
#AuthorizedPrincipalsFile none
|
#AuthorizedPrincipalsFile none
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue