Files
proxmox-packer/ansible/roles/configure/tasks/redhat.yml
2023-11-21 20:27:31 -06:00

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