6 lines
243 B
YAML
6 lines
243 B
YAML
---
|
|
- name: "Configure SSH for Public Key Authentication."
|
|
shell: |
|
|
sudo sed -i 's/.*PermitRootLogin.*/PermitRootLogin no/' /etc/ssh/sshd_config
|
|
sudo sed -i 's/.*PubkeyAuthentication.*/PubkeyAuthentication yes/' /etc/ssh/sshd_config
|