debian-vm-auto-setup/virt-customize_method/guest_bootstrap.sh

11 lines
147 B
Bash

#!/usr/bin/sh
set -x
chown root:root /root/.ssh/root
netplan apply
ssh-keygen -A
systemctl restart sshd
date --iso-8601=s > /root/init_date.txt