2020-05-01 20:41:01 +00:00
|
|
|
cp -a /root/.ssh /target/root/
|
|
|
|
mkdir -p /target/etc/confluent/ssh/sshd_config.d/
|
|
|
|
cp /custom-installation/confluent/* /target/etc/confluent/
|
2020-05-02 02:17:27 +00:00
|
|
|
for i in /custom-installation/ssh/*.ca; do
|
|
|
|
echo '@cert-authority *' $(cat $i) >> /target/etc/ssh/ssh_known_hosts
|
|
|
|
done
|
|
|
|
|
2020-05-01 20:41:01 +00:00
|
|
|
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/
|
2020-05-02 14:58:06 +00:00
|
|
|
sshconf=/target/etc/ssh/ssh_config
|
|
|
|
if [ -d /target/etc/ssh/ssh_config.d/ ]; then
|
|
|
|
sshconf=/target/etc/ssh/ssh_config.d/01-confluent.conf
|
|
|
|
fi
|
|
|
|
echo 'Host *' >> $sshconf
|
|
|
|
echo ' HostbasedAuthentication yes' >> $sshconf
|
|
|
|
echo ' EnableSSHKeysign yes' >> $sshconf
|
|
|
|
echo ' HostbasedKeyTypes *ed25519*' >> $sshconf
|
|
|
|
|
2020-05-01 20:41:01 +00:00
|
|
|
cp /custom-installation/firstboot.sh /target/etc/confluent/firstboot.sh
|
2020-05-02 14:58:06 +00:00
|
|
|
cp /tmp/allnodes /target/root/.shosts
|
|
|
|
cp /tmp/allnodes /target/etc/ssh/shosts.equiv
|