Skip to content

Commit

Permalink
Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov committed Feb 2, 2025
1 parent 4942876 commit f05f82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions infrastructure/02-configure/01-user-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
lineinfile:
path: /etc/ssh/sshd_config
regexp: "^#?PermitRootLogin"
line: "PermitRootLogin no" # disable login for root (even with SSH)
line: "PermitRootLogin no" # disable SSH login for root

- name: Disable password authentication for SSH
lineinfile:
path: /etc/ssh/sshd_config
regexp: "^#?PasswordAuthentication"
line: "PasswordAuthentication no" # allow only SSH login for remaining users
line: "PasswordAuthentication no" # enforce key-based auth for SSH for all users

- name: Restart SSH service
service:
Expand Down

0 comments on commit f05f82d

Please sign in to comment.