Commit bfb2e7dd authored by Paul's avatar Paul
Browse files

disable password authentication for all users

parent 5d27d0d3
Pipeline #5441 passed with stage
in 1 minute and 55 seconds
......@@ -22,13 +22,12 @@
dest: /etc
- name: Disable root login with password
- name: Disable password
tags: [base]
notify: restart sshd
lineinfile:
dest: /etc/ssh/sshd_config
regexp: "^#?PermitRootLogin"
line: "PermitRootLogin without-password"
line: "PasswordAuthentication no"
# configurations and stuff
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment