SSH on Debian Buster and later and newer Ubuntu templates
- SSH keys generally need to generated after the template creates a new container
ssh-keygen -q -t rsa -b 4096 -f ~/.ssh/id_rsa -P "" <<<y >/dev/null 2>&1
# If not done and needed:
# sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
service ssh restart