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

11 lines
147 B
Bash
Raw Normal View History

2024-06-21 09:44:40 +00:00
#!/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