You've already forked ssh-protect
chore: remove -i attr
This commit is contained in:
@@ -1,20 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Delete i attr in authorized_keys file
|
|
||||||
file:
|
|
||||||
path: "/root/.ssh/authorized_keys"
|
|
||||||
attr: '-i'
|
|
||||||
|
|
||||||
- name: Write ssh keys
|
- name: Write ssh keys
|
||||||
template:
|
template:
|
||||||
src: "authorized_keys.j2"
|
src: "authorized_keys.j2"
|
||||||
dest: "/root/.ssh/authorized_keys"
|
dest: "/root/.ssh/authorized_keys"
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
|
||||||
- name: Setup i attr in authorized_keys file
|
|
||||||
file:
|
|
||||||
path: "/root/.ssh/authorized_keys"
|
|
||||||
attr: i
|
|
||||||
|
|
||||||
- name: Authentication method public key only
|
- name: Authentication method public key only
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/ssh/sshd_config
|
path: /etc/ssh/sshd_config
|
||||||
|
|||||||
Reference in New Issue
Block a user