Skip to content

Commit dbb682e

Browse files
committed
cloudconfig: do not touch PasswordAuthentication
We have some application where we set PasswordAuthentication to "yes" in sshd_config. This has always worked, but for some reason cloud-init recently started setting it back to "no". Tell cloud-init to just not touch our config by setting ssh_pwauth to unchanged.
1 parent 582f3b2 commit dbb682e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/virter/cloudconfig.go

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ local-hostname: {{ .VMName }}
1515

1616
const templateUserData = `#cloud-config
1717
disable_root: False
18+
ssh_pwauth: unchanged
1819
ssh_authorized_keys:
1920
{{- range .SSHPublicKeys }}
2021
- {{ . }}

0 commit comments

Comments
 (0)