From d6bfe91f1ab120993b919c43aaa55a10d992e392 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Sat, 23 Jul 2022 12:07:25 +0200 Subject: [PATCH] Small tweaks to alma9.ks --- alma9.ks | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/alma9.ks b/alma9.ks index f6a428e..f963274 100644 --- a/alma9.ks +++ b/alma9.ks @@ -1,7 +1,7 @@ url --url="https://repo.almalinux.org/almalinux/9/BaseOS/x86_64/os/" cmdline skipx -timezone Europe/Paris --isUtc +timezone Europe/Paris --utc keyboard --vckeymap=fr-oss --xlayouts='fr (oss)' lang fr_FR.UTF-8 network --bootproto=dhcp --activate --noipv6 @@ -59,6 +59,9 @@ cp /tmp/pre.log /mnt/sysimage/root/pre.log ################################################ %post --log /root/post.log +# Enable root login with SSH to begin initial setup +sed -i -e '/PermitRootLogin/ c\PermitRootLogin yes' /etc/ssh/sshd_config + # Initial SSH keys mkdir /home/ansible/.ssh cat << _EOF >> /home/ansible/.ssh/authorized_keys