aboutsummaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2022-06-23 19:43:51 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2022-06-23 19:43:51 +0200
commite10d4b7945a60044dd1beb50a67188cb91c17ab4 (patch)
treeb04c34dc4b3d65cd4a569649817984d4dbd3d92e /tasks
downloadsshd_disable_passwd_login-e10d4b7945a60044dd1beb50a67188cb91c17ab4.tar.gz
sshd_disable_passwd_login-e10d4b7945a60044dd1beb50a67188cb91c17ab4.zip
inital commit
Diffstat (limited to 'tasks')
-rw-r--r--tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
new file mode 100644
index 0000000..7735f17
--- /dev/null
+++ b/tasks/main.yml
@@ -0,0 +1,9 @@
+---
+- name: Disable PasswordAuthentication
+ lineinfile:
+ path: /etc/ssh/sshdd_config
+ regexp: "^[#]? PasswordAuthentication"
+ line: "PasswordAuthentication no"
+ tags:
+ - ssh
+