fix password auth

This commit is contained in:
Pim Kunis 2023-04-05 20:01:14 +02:00
parent fa4ff8fcf3
commit 65a218f076
3 changed files with 39 additions and 2 deletions

View file

@ -1,7 +1,6 @@
#cloud-config
hostname: "${name}"
manage_etc_hosts: true
ssh_pwauth: ${ssh_pwauth}
disable_root: false
ssh_authorized_keys:
%{ for key in admin_authorized_keys ~}
@ -12,6 +11,9 @@ chpasswd:
list: |
root:root
expire: False
ssh_pwauth: true
%{ else }
ssh_pwauth: false
%{ endif }
%{ if use_host_cert }
ssh_keys: