From 00eb72a6274636c4cceaac338277b1b4763c948d Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 1 May 2020 22:17:27 -0400 Subject: [PATCH] Have ssh_known_hosts ready post install for ubuntu --- misc/ubuntu20.04deploy/custom-installation/post.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/ubuntu20.04deploy/custom-installation/post.sh b/misc/ubuntu20.04deploy/custom-installation/post.sh index 450efdc7..b10cd416 100755 --- a/misc/ubuntu20.04deploy/custom-installation/post.sh +++ b/misc/ubuntu20.04deploy/custom-installation/post.sh @@ -1,6 +1,10 @@ cp -a /root/.ssh /target/root/ mkdir -p /target/etc/confluent/ssh/sshd_config.d/ cp /custom-installation/confluent/* /target/etc/confluent/ +for i in /custom-installation/ssh/*.ca; do + echo '@cert-authority *' $(cat $i) >> /target/etc/ssh/ssh_known_hosts +done + cp -a /etc/ssh/ssh_host* /target/etc/confluent/ssh/ cp -a /etc/ssh/sshd_config.d/confluent.conf /target/etc/confluent/ssh/sshd_config.d/ cp /custom-installation/firstboot.sh /target/etc/confluent/firstboot.sh