Generate fresh key for a job, and add its public part to dom0's
authorized_keys file.
This allows the test controller to use SSH without any password prompt.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
---
New in v2
---
automation/scripts/qubes-x86-64.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/automation/scripts/qubes-x86-64.sh b/automation/scripts/qubes-x86-64.sh
index 91c0d5bec829..745fce6f9134 100755
--- a/automation/scripts/qubes-x86-64.sh
+++ b/automation/scripts/qubes-x86-64.sh
@@ -246,6 +246,10 @@ chmod +x etc/local.d/xen.start
mkdir -p etc/xen
echo "$domU_config" > etc/xen/domU.cfg
+mkdir -p root/.ssh
+ssh-keygen -t ed25519 -N '' -f ~/.ssh/id_ed25519
+cp ~/.ssh/id_ed25519.pub root/.ssh/authorized_keys
+
mkdir -p etc/default
echo "XENCONSOLED_TRACE=all" >> etc/default/xencommons
echo "QEMU_XEN=/bin/false" >> etc/default/xencommons
--
git-series 0.9.1