Some base images don't have `/root/.ssh` as an existing directory,
causing the subsequent `incus file push` to fail.
Change-Id: Iab90f513582201dd0775293d6523e3f09e1633b0
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
"rm -f ${HOME}/.ssh/id_rsa.pub"
"rm -f ${HOME}/.ssh/id_rsa"
)
+incus exec "ci:${INSTANCE_NAME}" -- mkdir -p /root/.ssh
incus file push ~/.ssh/id_rsa.pub "ci:${INSTANCE_NAME}/root/.ssh/authorized_keys2"
# Some distros, eg. Rocky Linux, don't enable the use of authorized_keys2
# by default