diff --git a/inventories/custom/osseclab/templates/clients_config.j2 b/inventories/custom/osseclab/templates/clients_config.j2 index be71267..7a56df9 100644 --- a/inventories/custom/osseclab/templates/clients_config.j2 +++ b/inventories/custom/osseclab/templates/clients_config.j2 @@ -3,3 +3,4 @@ systemd-machine-id-setup hostnamectl set-hostname {{ hostname }} echo {{ hostname }} > /etc/hostname echo "" > /etc/motd +sed -i 's/^#PermitRootLogin .*/PermitRootLogin yes/g' /etc/ssh/sshd_config