Compare commits

...

1 Commits

Author SHA1 Message Date
Reynir Björnsson c266a55213 Disallow ssh passwords 2020-12-13 15:25:21 +01:00
2 changed files with 7 additions and 0 deletions

View File

@ -2,3 +2,4 @@
- import_tasks: upgrade.yml
- import_tasks: base.yml
- import_tasks: users.yml
- import_tasks: sshd.yml

View File

@ -0,0 +1,6 @@
---
- name: Disallow ssh password login
lineinfile:
path: /etc/ssh/sshd_config
line: "PasswordAuthentication no"
regexp: "^#?PasswordAuthentication "